From 08b975293c356f7a39ca28aa5bc243fe3281d361 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 14 Dec 2014 13:09:14 +0100 Subject: compile ixes, make akonadi2common an actual shared lib --- tests/storagebenchmark.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index 130753f..33898d3 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp @@ -93,16 +93,11 @@ private Q_SLOTS: time.start(); { - auto event = createEvent(); + auto event = std::string(500, '1');//createEvent(); + + if (store) store->startTransaction(); for (int i = 0; i < count; i++) { if (store) { - if (i % 10000 == 0) { - if (i > 0) { - store->commitTransaction(); - } - store->startTransaction(); - } - store->write(keyPrefix + std::to_string(i), event); } else { myfile << event; -- cgit v1.2.3