|void||invalidateCollection (const Collection &col)|
|void||itemAdded (const Collection &col, qint64 size, bool seen)|
|void||itemsSeenChanged (const Collection &col, qint64 seenCount)|
|const Statistics||statistics (const Collection &col)|
|static void||destroy ()|
|static CollectionStatistics *||self ()|
|CollectionStatistics (bool prefetch=true)|
|virtual Statistics||calculateCollectionStatistics (const Collection &col)|
|QHash< qint64, Statistics >||mCache|
|static CollectionStatistics *||sInstance = nullptr|
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: