|CollectionStatistics (bool prefetch=true)|
|void||invalidateCollection (const Collection &col)|
|void||itemAdded (const Collection &col, qint64 size, bool seen)|
|void||itemsSeenChanged (const Collection &col, qint64 seenCount)|
|Statistics||statistics (const Collection &col)|
|virtual Statistics||calculateCollectionStatistics (const Collection &col)|
|QHash< qint64, Statistics >||mCache|
Provides cache for collection statistics.
Collection statistics are requested very often, so to take some load from the database we cache the results until the statistics are invalidated (see NotificationCollector, which takes care for invalidating the statistics).
The cache (together with optimization of the actual SQL query) seems to massively improve initial folder listing on system start (when IO and CPU loads are very high).
The documentation for this class was generated from the following files: