I am scratching my head on compacting the thumbnails database.
Mine is 10.3 GB.
Free space on the hard drive is 36.7 GB.
Compacting this database stops on the error "database or disk is full (0)".
Help!

hiIDimager wrote:To compact a database, at least twice the space of the database is needed. SQLite by default uses the Windows temp folder for this so it is that drive that should have enough space.
should be this WriteToRegistry('', 'SQLiteTempDir', 'c:\your folder here\'); ?In PSU you can alter the scratch disk. Weidmic documented this on his PSU tips page;
http://www.picolo-photography.com/psu
Search for "SQLite scratch folder" there.
Don't forget to restart PSU after making the change.
Code: Select all
WriteToRegistry('', 'SQLiteTempDir', 'D:\Temp"');
HiIDimager wrote:To run a registry tweak; you should run the code in Tools->Scripter. There start a new script (if one is loaded) then copy/paste the tweak and run it with the run button. Most registry tweaks require a restart, so good practice to do that after applying a registry tweak.
In your case;
1. Open Tools -> Scripter
2. File->New Script
3. Copy Paste this script:4. Restart PSUCode: Select all
WriteToRegistry('', 'SQLiteTempDir', 'D:\Temp"');
No need to change the command line
Code: Select all
DeleteFromRegistry('', 'SQLiteTempDir');
that's nice thanks HertIDimager wrote:Mantras, to reset the default you can delete the tweak again by running this script:
Don't forget to restart afterwards.Code: Select all
DeleteFromRegistry('', 'SQLiteTempDir');