[DB] Faster scan thanks to index on file path + stats improvements + bugfix

This commit is contained in:
emeric
2016-06-05 13:44:43 +02:00
parent f2b635d263
commit 7c475ee2d3
4 changed files with 19 additions and 21 deletions
+7 -7
View File
@@ -53,15 +53,15 @@ class Updater
struct Stats
{
std::size_t nbSkipped = 0; // no change since last scan
std::size_t nbScanned = 0;
std::size_t nbNoChange = 0; // no change since last scan
std::size_t nbScanned = 0; // total scanned filed
std::size_t nbScanErrors = 0; // cannot scan file
std::size_t nbNotImported = 0; // Not imported (criteria not filled)
std::size_t nbAdded = 0;
std::size_t nbRemoved = 0;
std::size_t nbModified = 0;
std::size_t nbNotImported = 0; // Scanned, but not imported (criteria not filled)
std::size_t nbAdded = 0; // Added in DB
std::size_t nbRemoved = 0; // removed from DB
std::size_t nbUpdated = 0; // updated file in DB
std::size_t nbChanges() const { return nbAdded + nbRemoved + nbModified;}
std::size_t nbChanges() const { return nbAdded + nbRemoved + nbUpdated;}
};
// Emitted when the whole database has been scanned (and all the event handlers have been called)