file hash cache, delete only older hashes?

The best solution for finding and removing duplicate files.
StefanDE
Posts: 11
Joined: Sun Feb 25, 2024 9:40 am

file hash cache, delete only older hashes?

Post by StefanDE »

My file hash cache DuplicateCleaner5_Pro_Cache-MD5.data is getting too big - very fast. More than 1.5 GB at the moment!
But I don't want to clear the cache completely every time.

Is there a way to delete only data, which are older than e.g. a month?
Keeping only the latest few weeks of data, that is.
User avatar
DigitalVolcano
Site Admin
Posts: 1866
Joined: Thu Jun 09, 2011 10:04 am

Re: file hash cache, delete only older hashes?

Post by DigitalVolcano »

There isn't any way to do this within the program. Also, it doesn't store the date the hash was created.

The cache files are SQLite databases. If you are happy with getting technical you can load them into a program such as
https://sqlitebrowser.org/

Entering an SQL command such as VACUUM may reduce the file size. You could also delete older (by ID) file records.


It's on the work-list for version 6 to make the cache files smaller by not storing the entire path for each file...
StefanDE
Posts: 11
Joined: Sun Feb 25, 2024 9:40 am

Re: file hash cache, delete only older hashes?

Post by StefanDE »

Thanks, but it is not about the file size.

It's about the time it takes to add more hashes, the bigger the file gets.
Even on an i9 13th gen. machine with 96 GB of RAM it takes several minutes when e.g. 1,000 new duplicate hashes need to be added.

Deleting older (by ID) file records is something I should consider.

Thanks!
Post Reply