Re: Searching large volumes/Large lists
Re: Searching large volumes/Large lists
- Subject: Re: Searching large volumes/Large lists
- From: Richard Morton <email@hidden>
- Date: Wed, 14 Aug 2002 21:59:02 +1000
On Wednesday, August 14, 2002, at 01:32 AM, Wadson, David wrote:
I'm using the Find File scripting addition to search for files on server
volumes and have run into some brutal speed issues...
...While I've tried to narrow down the specific locations on the
servers where
the script needs to look for the files, it isn't always possible and I
have
to scan the entire 36GB volume. Big part of the problem is that for
every
file I need to locate, the script has to search through the entire list
of
folders and volumes each time.
This sounds like the (or a) problem. FindFile is pretty powerful, are
you sure you can't narrow the search more?
My new theory on how to do the search is to create a list in the script
of
every file that matches the file types I'm looking for (Quark document,
EPS
file, PDF file), and then search through that list for the particular
file
names.
The osax could do this in one hit. I've also noticed that it can search
quite large folders quickly if it's only picking up a few files -
doesn't seem to take long to ignore, only to find.
I think would be trying to fix this some other way first though, or at
least ensure that your problem is not elsewhere. Not that I do, but if
I were running some sort of production system, it wouldn't strike me as
completely ridiculous to expect things to be filed in some sort of
logically structured way. Maybe this is something of an organisational
issue instead, or at least as well, and maybe you can use AS upstream
from this problem to avoid it instead of having to fix it. No idea -
just a thought. :-)
Cheers,
Richard Morton
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.