0.83: Operations on categories slow

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

0.83: Operations on categories slow

Post by jadO »

I don't know if it is a real bug. But using the sidecar filter categories, it seems to be extremely slow.
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Categories slow

Post by xnview »

jadO wrote:I don't know if it is a real bug. But using the sidecar filter categories, it seems to be extremely slow.
what do you mean by sidecar filter categories??
Pierre.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: Categories slow

Post by jadO »

xnview wrote:
jadO wrote:I don't know if it is a real bug. But using the sidecar filter categories, it seems to be extremely slow.
what do you mean by sidecar filter categories??
I mean the category filter pane. Anything related to it is slow: Selecting multiple, deselection, creating thumbnails with having categories selected.
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Categories slow

Post by xnview »

even selecting a rating?
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Categories slow

Post by m.Th. »

jadO wrote:
xnview wrote:
jadO wrote:I don't know if it is a real bug. But using the sidecar filter categories, it seems to be extremely slow.
what do you mean by sidecar filter categories??
I mean the category filter pane. Anything related to it is slow: Selecting multiple, deselection, creating thumbnails with having categories selected.

1. How many categories do you have selected? 5? 10? 100?
2. How many categories do you have in total? 100? 500? 1000?
3. In Tools | Settings | Catalog | Memory usage for database engine: - what value do you have?
4. What storage do you have? HDD? SSD?
5. How much memory do you have?
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Categories slow

Post by m.Th. »

xnview wrote:even selecting a rating?

...perhaps separate indices on ImageID and (especially) TagID would help in table TagsTree... - but this needs real benchmarking on his system...
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: Categories slow

Post by jadO »

xnview wrote:even selecting a rating?
Yes everything to select in that pane slows down XnViewMP.
m.Th. wrote:1. How many categories do you have selected? 5? 10? 100?
2. How many categories do you have in total? 100? 500? 1000?
3. In Tools | Settings | Catalog | Memory usage for database engine: - what value do you have?
4. What storage do you have? HDD? SSD?
5. How much memory do you have?
1. Depends: 1- 20
2. There is no easy way to count. Maybe 300-500
3. 500 MB
4. HDD
6. 12 GB
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Categories slow

Post by m.Th. »

jadO wrote:
xnview wrote:even selecting a rating?
Yes everything to select in that pane slows down XnViewMP.
m.Th. wrote:1. How many categories do you have selected? 5? 10? 100?
2. How many categories do you have in total? 100? 500? 1000?
3. In Tools | Settings | Catalog | Memory usage for database engine: - what value do you have?
4. What storage do you have? HDD? SSD?
5. How much memory do you have?
1. Depends: 1- 20
2. There is no easy way to count. Maybe 300-500
3. 500 MB
4. HDD
6. 12 GB

Hmmm... it shouldn't make any difference. I don't know what SQL Pierre uses - he should use a (NOT) IN predicate and put the values of TagID as numbers in there - this is the fastest way.

Besides that, a common problem (dunno if it is fixed now) on XnView and other programs are the so-called 'offline files' or 'hard-to-reach files'.

Let's say that I have cataloged some files which I don't have access anymore (the volume went offline - think a unplugged external USB disk) or a slow media - for example a slow (WiFi?) LAN share, a clogged disk etc.

When I do my filter, the program grabs ALL the files which met the condition, regardless of directory (do you use the filter with the scope ALL or 'This Directory Only'?) hence it can try to show offline files or hard-to-reach files which would slow all the system.

Questions
1. (again): Do you use the filter with the scope "ALL" or "This Directory Only"'? (it is located in the 'Match' drop-down at the top of the pane)
2. If you do such a filter how many photos do you get? 10? 100? 1000?
3. Which file format?
4. How big are the files on average?
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Categories slow

Post by xnview »

jadO wrote:
xnview wrote:even selecting a rating?
Yes everything to select in that pane slows down XnViewMP.
Is it possible to have the database file?
Pierre.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: Categories slow

Post by jadO »

xnview wrote:Is it possible to have the database file?
No.
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Categories slow

Post by xnview »

jadO wrote:
xnview wrote:Is it possible to have the database file?
No.
not easy to understand what's happened :(
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Categories slow

Post by m.Th. »

jadO wrote:
xnview wrote:Is it possible to have the database file?
No.
You didn't respond to my last message (4 questions there)...
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Post Reply