Revision d94b9e3...
Go back to digest for 27th January 2013Optimization in KDE Base
Vishesh Handa committed changes in [kde-runtime/KDE/4.10] /kioslaves/tags:
Tags kioslave: Use the Tag class internally
We had avoided using the Tag class for listDir cause that would mean n+1
queries when listing all the tags - One for fetching all their uris and
the other to fetch each tag's properties. We could instead just do it in
1 query by fetching all the uris and identifiers in one go.
However, this approach had the drawback that we would display the
nao:identifier, whereas all applications actually show the
nao:prefLabel. Also, we could not display the correct datetime of the
tags.
This approach is cleaner and uses the ResourceManager to handle all the
caching.
File Changes
Modified 2 files
- /kioslaves/tags
- nepomuk/kio_tags.cpp
- nepomuk/kio_tags.h
2 files changed in total