Faster reading and data snapshot
-
Ysl
- Posts: 165
- Joined: 03 Jan 2007 22:22
Faster reading and data snapshot
Hi
I must have miss something but I cannot make it work...
I activated the cache result in the find option, with "show search result in search tab"
clicked on a tab (drive H), made a search over 98.000 files then make one search again on same drive but I still have to wait as it was before...91,235 seconds
I'm not sure I've undesrtood how to make search caching work...
Thanks for your help
Ysl
I must have miss something but I cannot make it work...
I activated the cache result in the find option, with "show search result in search tab"
clicked on a tab (drive H), made a search over 98.000 files then make one search again on same drive but I still have to wait as it was before...91,235 seconds
I'm not sure I've undesrtood how to make search caching work...
Thanks for your help
Ysl
Last edited by Ysl on 04 Sep 2009 20:00, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66353
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to make search result caching work ?
Code: Select all
Where and when does it happen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cached data are not held in memory but written to tab_*.dat files
down in the Panes subfolder. They are written whenever a non-
cached search tab is backgrounded, and read whenever a search tab
is foregrounded (selected). In other words, caching only happens
on tab selection, whereas pressing F3 or any other way to run a
search will always trigger a live search.
What is cached
~~~~~~~~~~~~~~
Only the item names are cached. All other data (size, file dates,
attributes, etc.) are freshly polled. This polling takes time, and
the efficiency of the cache highly depends on the nature of the
search:
- The worst case is a search without any filters (e.g. find all
items in all subfolders), where reading the cache and processing
the data is likely to be even slower than a fresh live search.
- The best case is a search over a large area with relatively few
results -- this is where the cache really shines.FAQ | XY News RSS | XY X
-
Ysl
- Posts: 165
- Joined: 03 Jan 2007 22:22
Re: How to make search result caching work ?
Well sorry but I still don't understand (I'm french speaking)
Here is my setup :

First tab is Drive H but if I open any other tab, the search will still be done on drive H (because Location is set to H:) Anyway, Drive H: is where I always search....
So when I click find, where is the cached search result file stored ?
And where to click to do a search on those cached search results ?
Thanks again
Ysl
Here is my setup :

First tab is Drive H but if I open any other tab, the search will still be done on drive H (because Location is set to H:) Anyway, Drive H: is where I always search....
So when I click find, where is the cached search result file stored ?
And where to click to do a search on those cached search results ?
Thanks again
Ysl
-
admin
- Site Admin
- Posts: 66353
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to make search result caching work ?
The results are written to cache (= the tab's data file on disk called tab*.dat) when the tab is backgrounded, that is either when you select another tab, or when you close the app. When you then re-select the tab it will read its contents from the cache instead of starting a fresh search.Ysl wrote:Well sorry but I still don't understand (I'm french speaking)
Here is my setup :
First tab is Drive H but if I open any other tab, the search will still be done on drive H (because Location is set to H:) Anyway, Drive H: is where I always search....
So when I click find, where is the cached search result file stored ?
And where to click to do a search on those cached search results ?
Thanks again
Ysl
You can not "do a search on those cached search results", you can just show the cached search results.
BTW, looking at your screenshot I think there should be a max width for VF display on tab headers...
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: How to make search result caching work ?
As an option of some sort, maybe, but presume some may wish to see it all even if it makes tab very wide...admin wrote:BTW, looking at your screenshot I think there should be a max width for VF display on tab headers...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
Ysl
- Posts: 165
- Joined: 03 Jan 2007 22:22
Re: How to make search result caching work ?
In fact, I completely misunderstood what search result caching was...
What I've hoped for is a way to save the entire drive files and folder names in a cached area (a txt file or whatever) so that when I search again, the search (if option checked) will be done in the .txt file and not the real drive.
This of course will give me "old" results but will save me so much time (92.235 sec each search !) and of course, I still would have a way to do a real "live" search...
Is this something already possible or in the future ?
I hope I explained it clearly !
Thanks !
Ysl
What I've hoped for is a way to save the entire drive files and folder names in a cached area (a txt file or whatever) so that when I search again, the search (if option checked) will be done in the .txt file and not the real drive.
This of course will give me "old" results but will save me so much time (92.235 sec each search !) and of course, I still would have a way to do a real "live" search...
Is this something already possible or in the future ?
I hope I explained it clearly !
Thanks !
Ysl
-
avsfan
- Posts: 554
- Joined: 29 Jun 2006 09:00
- Location: Fort Collins, Colorado
Re: How to make search result caching work ?
If I know roughly where a file is, or want to limit the scope of my search, I love the searching functions of XY. However, if I don't know where the file is, one tool that I really like is called "Everything Search Engine." It's fast (i.e. practically instantaneous), flexible, and free.Ysl wrote:In fact, I completely misunderstood what search result caching was...
What I've hoped for is a way to save the entire drive files and folder names in a cached area (a txt file or whatever) so that when I search again, the search (if option checked) will be done in the .txt file and not the real drive.
This of course will give me "old" results but will save me so much time (92.235 sec each search !) and of course, I still would have a way to do a real "live" search...
You can check it out at http://www.voidtools.com/ and see what you think. I bound it to Win-Shift-F, so when I need to find a file, I just hit that key combination, type a few chars of the name, and it's right there.
It's great, but more often I use XY for my searches. One of the reasons is all the things I can do with the files after they're found (i.e. preview, etc), that Everything doesn't have, so XY definitely wins in those areas. In fact, in cases where I don't know where the file is, I sometimes use Everything to find it (or them), and the open that location in XY to get the functionality I want!
I hope this helps!
andy
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: How to make search result caching work ?
Just a note about this tool: As I recall, it requires NTFS on the drive and some of us still use FAT32 so it wouldn't work for us.avsfan wrote: one tool that I really like is called "Everything Search Engine." It's fast (i.e. practically instantaneous), flexible, and free.
You can check it out at http://www.voidtools.com/ and see what you think.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to make search result caching work ?
Ysl wrote:In fact, I completely misunderstood what search result caching was...
What I've hoped for is a way to save the entire drive files and folder names in a cached area (a txt file or whatever) so that when I search again, the search (if option checked) will be done in the .txt file and not the real drive.
This of course will give me "old" results but will save me so much time (92.235 sec each search !) and of course, I still would have a way to do a real "live" search...
Is this something already possible or in the future ?
I hope I explained it clearly !
Thanks !
Ysl
Code: Select all
+ Search Templates Dialog: Search Templates now support caching, i.e. you can save search results in a template file (in <xydata>\FindTemplates), and load them back into the list at any point in future via the Search Templates dialog.-
admin
- Site Admin
- Posts: 66353
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to make search result caching work ?
True, but of course not quite the same as an indexed search (which is I think what Ysl is looking) because you cannot search _on_ those results stored in the template, but they _are_ the results. And if you store a whole drive in a template file it won't make you happy. That's not the idea of it and will be slower than a fresh search.serendipity wrote:Ysl wrote:In fact, I completely misunderstood what search result caching was...
What I've hoped for is a way to save the entire drive files and folder names in a cached area (a txt file or whatever) so that when I search again, the search (if option checked) will be done in the .txt file and not the real drive.
This of course will give me "old" results but will save me so much time (92.235 sec each search !) and of course, I still would have a way to do a real "live" search...
Is this something already possible or in the future ?
I hope I explained it clearly !
Thanks !
YslYou can save your search to a template and this does similar to what you want, i.e. it stores all the filenames in an ini file. Next time XY simply lists the files from this ini file.Code: Select all
+ Search Templates Dialog: Search Templates now support caching, i.e. you can save search results in a template file (in <xydata>\FindTemplates), and load them back into the list at any point in future via the Search Templates dialog.
BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: How to make search result caching work ?
Actually, that's what I was thinking the cache would contain! Yes, the data could quickly beome obsolete, but it would provide the equivalant to having printed the search results and then working from paper notes, but without the use of hardcopy.admin wrote:BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
We know the results may not be up-to-the minute but in many cases, they may well be good enough to work with for the task you're doing.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to make search result caching work ?
I would be interested in this. Faster reading and data snapshot sound good to me.admin wrote:BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: How to make search result caching work ?
Only problem with this might be the refreshing. It might sound like a good idea, but how would one refreshes the data (i.e. dates, size, attr of listed items) without having to run the search again?serendipity wrote:I would be interested in this. Faster reading and data snapshot sound good to me.admin wrote:BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
Proud XYplorer Fanatic
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to make search result caching work ?
Hmmm, i realized as much. So this will be like report function actually, just that it will be displayed in the search tab. It might still be useful to compare the Old Vs New folder data (esp. in DP mode), like say for syncing or backup or like Don said, Data-wise snapshot.jacky wrote:Only problem with this might be the refreshing. It might sound like a good idea, but how would one refreshes the data (i.e. dates, size, attr of listed items) without having to run the search again?serendipity wrote:I would be interested in this. Faster reading and data snapshot sound good to me.admin wrote:BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
-
admin
- Site Admin
- Posts: 66353
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How to make search result caching work ?
Yes, yes, thrilling. Actually technically no problem at all for me (I'm the cache master now). Question is the GUI. How about this: On a search results tab, F3 will just refresh the displayed data, and Shift+F3 will redo the search? Well, no, not good, F3 should stay what it is. But a new command "Update Search Results" (?) with default KS Alt+F3?jacky wrote:Only problem with this might be the refreshing. It might sound like a good idea, but how would one refreshes the data (i.e. dates, size, attr of listed items) without having to run the search again?serendipity wrote:I would be interested in this. Faster reading and data snapshot sound good to me.admin wrote:BTW, if anybody's interested: I could optionally store the basic file data as well (size, dates, attr) in the template. Reading the cache would be even faster and data-wise you would see a snapshot of the time when the cache was written! Might be interesting...
FAQ | XY News RSS | XY X
XYplorer Beta Club