Skip to content
Commit 5444465b authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

CollectionSync: split transaction into multiple smaller transactions

The transaction actually starts a database transaction on Akonadi side and
it turns out that DB backends don't handle transactions with thousands of
INSERT statements very well (we noticed a big performance drop when executing
the queries).

This patch splits the one big transaction into smaller transactions of 100
operations (CollectionCreateJob). As result, creating 100,000 collections
takes much less time.

REVIEW: 119491
parent aeadfbb9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment