thumbnail database follow external drvie

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: thumbnail database follow external drvie

Post by klownboy »

admin wrote: ↑24 Sep 2019 15:00 If XY enters a folder on a removable drive and the external thumbnail database feature is enabled then XY would have to look whether the thumbnail database folder exists and whether that folder is cached.
That would apply to a entering (the actual image folder) of a external or your fixed drive.

Might it be better to have the user select the thumbnail data base folder used - primary or alternate. So XYplorer utilizes the database selected...period? From that point it would work as it always has. If the cache exists for the image folder the user enters, it's read from the designated thumbnail database. If it doesn't exist or the cache isn't up to date than the thumbs are built as necessary. If the user happens to have the primary selected and should have had the alternate then that's their problem. Just wondering.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: thumbnail database follow external drvie

Post by admin »

Yes, think that's what I meant. One DB for fixed drives (on one of the fixed drives), plus one DB for each removable drive (on the removable drive).

No fallback. Make it simple.

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: thumbnail database follow external drvie

Post by klownboy »

admin wrote: ↑24 Sep 2019 15:43 No fallback. Make it simple.
Yes, the alternate location can be pointed to a folder on an external drive, but do you have to limit that alternate location to a database on an external drive? Someone may come up with a good reason to use an alternate location but not on an external drive - just not in the "normal" location that has nothing to do with external drives. Where the actual images are located actually doesn't make any difference. They would have to have the setting ticked to cache image files on an external drive if they want that.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: thumbnail database follow external drvie

Post by admin »

The purpose here is just to handle the volatile drive letter issue. To have the database on the removable drive is the perfect solution for this, and it makes lots of additional sense since you can carry your pictures around along with the thumbnails cache. How cool is that?!

Why would someone use an alternative DB on the fixed drive anyway?

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: thumbnail database follow external drvie

Post by klownboy »

admin wrote: ↑24 Sep 2019 16:12How cool is that?!
It is very cool!
admin wrote: ↑24 Sep 2019 16:12 Why would someone use an alternative DB on the fixed drive anyway?
I'm not sure they ever would. At least I can't think of a reason at the moment. If one was using an alternate XYplorer.ini file, they could also specify a different thumbnail location even how it stands now.

I suppose it doesn't matter what you call that alternate location for external drives but would you have to unnecessarily limit it to a external drive regardless of what it's called? I guess what I'm saying is, you wouldn't need to build in something that prevents it from working on a non-external drive...it's just a location pointer.

Wouldn't the user still have to use a "Named Drive" as I discussed earlier in the thread if he was using more than one external drive? People may have more than one external drive installed at a time and only one may have the thumbnail database.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: thumbnail database follow external drvie

Post by admin »

...it's just a location pointer.... Well, it's an incomplete location pointer because the very drive letter is missing. That's the core of the trick here.

I will not prevent you from pointing it to a fixed drive location. Then you would have a thumbnails cache on each of your fixed volumes. You could then copy those pics and the cache to another drive and all references would still work because they are soft (with regard to the drive letter). If you can live with having an XY-related folder on each volume then this might be even a cooler way than the current single fixed cache for all volumes.

Wait, maybe I was too fast here. You cannot point it to a fixed drive location since the pointer does not have a drive letter (see my eample above: XYThumbs in viewtopic.php?p=172843#p172843).
I think the above could be doable but I would separate it from the "removable cache" (which would only be used on removable drives).

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: thumbnail database follow external drvie

Post by klownboy »

OK, I see now what you're getting at. Based on what direction you're going I wouldn't worry about accommodating an alternate location(s) on fixed drives...it sounds like it would possibly be a nightmare. I thought it might be a decent option to have if ever needed, but I don't think anyone would want to have a XY thumbnail DB on each drive.

Would you have something in play that would trigger use of the external drive (i.e., use the external drive thumbnail DB verses the fixed drive DB)? Would it be automatic - is it merely the fact that the user is viewing images on an external drive or would you have a location toggle (fixed or external) that the user could apply/toggle if he wants to use the external?

If the user has the location field for the external drive filled in XYthumbs, but he he is viewing images on the fixed drive and the folder he enters has no cache, XY shouldn't waste time checking if an external is installed (time consuming) or looking on a external drive hopefully if it happens to be installed even though it's not in use?

If the external drive XYthumbs pointer isn't filed out at all everything should work as it currently does, correct, fast as ever?

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: thumbnail database follow external drvie

Post by admin »

Yes, it will all be smart, easy, and fast. :)

But not before 20.60.

Code name Portable Thumbs Cache. :cup:

asanga
Posts: 4
Joined: 20 Sep 2019 01:03

Re: thumbnail database follows external drive

Post by asanga »

admin wrote: ↑24 Sep 2019 16:44 If you can live with having an XY-related folder on each volume then this might be even a cooler way than the current single fixed cache for all volumes.
Thanks for the replies. I could live with that. In the title "thumbnail database follow external drive", I imagined a similar approach.

However, I also like to say:
1. XYplorer might need to distinguish external drive AND fixed disk since I would feel if either XYTumbs is not configured OR if configured but not founded in external drive, the XYplorer will fall back to the existing way.
2. if configured but not founded in external drive but a user wants to see the thumbnails, there might be a YES/NO dialog to ask for permission to create thumbnails database in the external drive.
3. Currently, if I need to unplug an external drive, I need to close all my "tabs" related to the drive in order to have a "safe" unplug. I imaged XYplorer must open the thumbnails database for the generation. So, there might need a way to "close" the thumbnails database handle for a user to "safe" unplug.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: thumbnail database follow external drvie

Post by admin »

OK, I'll come back to this thread when I begin to implement this.

Post Reply