Skip to content
Commit d1f66f33 authored by David Faure's avatar David Faure
Browse files

Optimize DataStore::setItemsFlags to not fetch item flags again.

Attaching perf to akonadiserver while deleting 10k items
(and possibly some background mailcheck...) showed this in Hotspot:
http://www.davidfaure.fr/2020/hotspot_pimitem_flags.png

Clearly this is calling PimItem::flags() (which makes a SQL query)
twice, once in ItemCreateHandler and again in DataStore::setItemFlags.
Just pass the flags from the former to the latter.
parent 61ae4984
Pipeline #29967 passed with stage
in 46 minutes and 29 seconds
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