Thumbnail db
Moderator: xnview
-
obelisk
- Posts: 485
- Joined: Fri Jan 09, 2009 9:54 am
Thumbnail db
Today I looked at my Thumbnail db file since my xnview takes 15s to load now. It had 1356 fragments. Is anything being done to address this?

-
punter
- Posts: 1
- Joined: Mon Jun 15, 2009 3:24 am
Re: Thumbnail db
That is ordinary for pants filesystem.obelisk wrote:Today I looked at my Thumbnail db file since my xnview takes 15s to load now. It had 1356 fragments. Is anything being done to address this?
-
xnview
- Author of XnView
- Posts: 47518
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Thumbnail db
15s, it's really strange? Try to rename the category.db?obelisk wrote:Today I looked at my Thumbnail db file since my xnview takes 15s to load now. It had 1356 fragments. Is anything being done to address this?
Pierre.
-
obelisk
- Posts: 485
- Joined: Fri Jan 09, 2009 9:54 am
Re: Thumbnail db
Yes but yet all other programs get around this by preallocating or other means.punter wrote: That is ordinary for pants filesystem.
It takes about 10-15s to enter any pre-cached folder of 100+ pics, even if those pics have no category set. For folders with no cached pics it's immediate.xnview wrote: 15s, it's really strange? Try to rename the category.db?
-
Clo
- XnThusiast
- Posts: 4441
- Joined: Sun Oct 17, 2004 4:57 am
- Location: Bordeaux, France
Re: Thumbnail db
“obelisk” wrote
• For instance, in Total Commander we have the following INI entry :Yes but yet all other programs get around this by preallocating or other means.
ThumbnailPrealloc=100000
¤ Sets number of bytes to pre-allocate when creating the thumbnails database to avoid fragmentation.
…
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
-
xnview
- Author of XnView
- Posts: 47518
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Thumbnail db
15s?? Do you have tried optimise on DB?obelisk wrote:It takes about 10-15s to enter any pre-cached folder of 100+ pics, even if those pics have no category set. For folders with no cached pics it's immediate.xnview wrote: 15s, it's really strange? Try to rename the category.db?
Pierre.
-
obelisk
- Posts: 485
- Joined: Fri Jan 09, 2009 9:54 am
Re: Thumbnail db
No not yet, what does optimise do? I thought it just removes deletes files, which I don't have any of.
-
pic_viewer
- Posts: 251
- Joined: Sat Nov 17, 2007 7:53 am
- Location: Germany
Re: Thumbnail db
Download the freeware Defraggler from Piriform. It allows you to defragment only xnview.db file in blazing speed. Quicker than complaining here and waiting for an improvement...
-
JohnFredC
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Thumbnail db
2pic_viewer
Wow! That Defraggler thing is very useful! Thanks for pointing it out!
Wow! That Defraggler thing is very useful! Thanks for pointing it out!
John
-
obelisk
- Posts: 485
- Joined: Fri Jan 09, 2009 9:54 am
Re: Thumbnail db
defrag does nothing to the speed. I do it every 2wks anyway due to this stuff.
-
JohnFredC
- XnThusiast
- Posts: 2010
- Joined: Wed Mar 17, 2004 8:33 pm
- Location: Sarasota Florida
Re: Thumbnail db
Every tiny little bit adds up, over time, even if you can't detect improvement of a single instance
John
-
xnview
- Author of XnView
- Posts: 47518
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Thumbnail db
Yes, and make a "VACUUM" command on the DB.obelisk wrote:No not yet, what does optimise do? I thought it just removes deletes files, which I don't have any of.
How many files do you have in the DB?
Pierre.
-
ckv
- Posts: 786
- Joined: Wed Feb 02, 2005 2:30 pm
- Location: Glow
Re: Thumbnail db
[offtopic]
As an alternative here for Defraggler, I would recommend Sysinternals (Microsoft) Contig command line file defragmenter.
pic_viewer wrote:Download the freeware Defraggler from Piriform. It allows you to defragment only xnview.db file in blazing speed. Quicker than complaining here and waiting for an improvement...
I must say, Piriform tools Recuva and CCleaner are great, but Defraggler once screwed up my system to unbootable state and i'm not the only one who got problems like this with Defraggler. So just a warning.JohnFredC wrote:Wow! That Defraggler thing is very useful! Thanks for pointing it out!
As an alternative here for Defraggler, I would recommend Sysinternals (Microsoft) Contig command line file defragmenter.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
-
pic_viewer
- Posts: 251
- Joined: Sat Nov 17, 2007 7:53 am
- Location: Germany
Re: Thumbnail db
Of course there were versions of Defraggler that made problems. Same for every software, including XnView. Check the history listing. The current version is more than stable and includes lots of features that a command line version will never have.
-
obelisk
- Posts: 485
- Joined: Fri Jan 09, 2009 9:54 am
Re: Thumbnail db
Way to increase confidence. I've used 5 defrag programs since the days of Win95 and none of them ever created problems. When doing data critical software NO you should not have problems. They should be tested differently to eg xnview which won't delete your partition by mistake...pic_viewer wrote:Of course there were versions of Defraggler that made problems.
Tried the optimize on db, it still takes almost 10s to switch to a dir of raw files. Dir of jpg takes a little less. I have about 12k files in db.