Revision 7d3c102...
Go back to digest for 15th July 2012Optimization in KDE-PIM
Volker Krause committed changes in [akonadi] /:
Cache prepared queries and re-use them whenever possible.
Sergio measured this to save 22% CPU time during creation of new items.
It should also cut down database server roundtrips considerably.
While not being the most efficient way to implement this, adding it to
the query builder instantly accelerates all but just five queries. I'll
convert those to either use the query builder or the cache directly in the
next step.
File Changes
Added 2 files
- /src/storage
- server/querycache.cpp
- server/querycache.h
Modified 2 files
- server/CMakeLists.txt
- server/src/storage/querybuilder.cpp
4 files changed in total