How does the database work in XnView MP?

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

stankovic
Posts: 13
Joined: Thu Aug 11, 2011 4:17 pm

How does the database work in XnView MP?

Post by stankovic »

I hope that some of the more experienced users will help me to understand how the database works. Here is a summary of what i know or believe to know, so please correct me if i am wrong:

When i open in browser mode some images from folder pane then i receive an image list. These images are scanned and the progress of scanning is visible in the progressbar inside of the statusbar. All these viewed folder appear in settings -> cache db -> thumbnails under "cached directory". If i now add some ratings, labels, categories then i will be able to select that images from categories pane and in the filelist toolbar as source not a folder but "<DB result>" will be displayed.

So far so good! But i have no idea what the options in the "Exclude/Include" tab do or what their purpose are?
User avatar
xnview
Author of XnView
Posts: 43040
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How does the database work in XnView MP?

Post by xnview »

stankovic wrote: So far so good! But i have no idea what the options in the "Exclude/Include" tab do or what their purpose are?
If you add a folder in 'exclude', thumnails will not be saved in database...
Pierre.
stankovic
Posts: 13
Joined: Thu Aug 11, 2011 4:17 pm

Re: How does the database work in XnView MP?

Post by stankovic »

I am not sure if i have understood you, Pierre. When i put a folder in the exclude list i have following: the entry dissappears from the "cached directory" and from database list but appears again when i browse the same folder again in folder pane. Somehow i cannot follow the concept or purpose of that.

Edit:

And in that context: what a sense has the "include" feature.

(Sorry, if my questions seem stupid to you, but i try to understand exactly what is happening)
User avatar
xnview
Author of XnView
Posts: 43040
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How does the database work in XnView MP?

Post by xnview »

Ok, there is a bug
stankovic wrote: And in that context: what a sense has the "include" feature.
You can exclude c:\picture and want to include c:\picture\tmp
Pierre.
stankovic
Posts: 13
Joined: Thu Aug 11, 2011 4:17 pm

Re: How does the database work in XnView MP?

Post by stankovic »

xnview wrote:Ok, there is a bug
You can exclude c:\picture and want to include c:\picture\tmp
Ah, that makes sense! If i understand correctly these two pages in the preferences are both related to handling of thumbnails rather than database. Wouldn't it be better to rename the preferences page to "Cache thumbnails" to avoid confusion? Because of the name i really thought it must be about the database and confused the Exclude/Include settings with something similar like watched folders.

Out of curiosity: what is the bug? The anew adding of a excluded folder to cached directory probably? The simultaneous removal from database is intended?