diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-20 09:31:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | dc6bc885b70d8dbada622c22f8d620084b798648 (patch) | |
tree | c12f3fdcbea12f172b48a8ba7485cacfd0fc86bf /common/sourcewriteback.h | |
parent | a1b86c269f3d2a64d63f001df33bb3e1932423a0 (diff) | |
download | sink-dc6bc885b70d8dbada622c22f8d620084b798648.tar.gz sink-dc6bc885b70d8dbada622c22f8d620084b798648.zip |
Don't create a transaction for every revision that we don't replay.
This had a significant performance impact when i.e. syncing a folder
with 10k messages.
Diffstat (limited to 'common/sourcewriteback.h')
-rw-r--r-- | common/sourcewriteback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sourcewriteback.h b/common/sourcewriteback.h index 8531ff5..8031573 100644 --- a/common/sourcewriteback.h +++ b/common/sourcewriteback.h | |||
@@ -39,6 +39,7 @@ public: | |||
39 | protected: | 39 | protected: |
40 | ///Base implementation calls the replay$Type calls | 40 | ///Base implementation calls the replay$Type calls |
41 | virtual KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; | 41 | virtual KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; |
42 | virtual bool canReplay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; | ||
42 | 43 | ||
43 | protected: | 44 | protected: |
44 | ///Implement to write back changes to the server | 45 | ///Implement to write back changes to the server |