Speedups for the Thumbs DB (esp. on LAN/Multi-User)
Posted: Tue Jan 21, 2014 9:01 am
XnView MP can work on a LAN with multiple users simultaneously accessing the same data store. However due of its architecture, this number is relatively small, and one of the main reasons (if not THE main reason) is that SQLite locks the entire DB when it writes. This isn't such a problem for the small db (xnview.db) but for the big one, the one with the thumbnails inside (thumbs.db).
However, there is a simple solution for this:
In Settings | Integration | Paths add bellow to "Folder for Database (.db)" an Edit Folder Field saying "Folder for thumbs (leave empty to store in the same folder with the DB)". Something like this:
This will enhance the speed of the program not only in the case of an multi-user environment (each user can have its non-shared thumbs.db stored locally), but also on LAN (1Gb Lan is a bottleneck when it comes to transfer large amounts of data like many thumbnails) and also locally: the head of the HDD will spend the time seeking sectors because it will write to (at least) two different files simultaneously: xnview.db and thumbs.db - one can setup the program to put the thumbs.db on a 2nd HDD, SSD or even on a USB thumb drive.
The speed improvements will be significant.
However, there is a simple solution for this:
In Settings | Integration | Paths add bellow to "Folder for Database (.db)" an Edit Folder Field saying "Folder for thumbs (leave empty to store in the same folder with the DB)". Something like this:
This will enhance the speed of the program not only in the case of an multi-user environment (each user can have its non-shared thumbs.db stored locally), but also on LAN (1Gb Lan is a bottleneck when it comes to transfer large amounts of data like many thumbnails) and also locally: the head of the HDD will spend the time seeking sectors because it will write to (at least) two different files simultaneously: xnview.db and thumbs.db - one can setup the program to put the thumbs.db on a 2nd HDD, SSD or even on a USB thumb drive.
The speed improvements will be significant.