January 30, 200422 yr I have a file with about 40,000 records. Several times a day a script is run by a user that goes thru every record and updates each record (don't ask why, but it has to right now). This script takes about 6 minutes to run. Other users runs scripts that find sets of these records. If the previously mentioned script that is updating the records is currently running, other users that run the find scripts get incorrect results and they take 10x longer to run. Can I add to the find scripts, steps that will return a message (and halt the find script) if the updating script is being run? The updating script is always run by a different user, obviously. Thansk in advance for any help.
January 30, 200422 yr Hi vanderark, You could have an extra database with one record and one field that flags if the script is running, The find scripts would have to check this flag before executing their actual find steps. Regards, Ernst.
January 31, 200422 yr Author That sounds brillantly simple and I am embarrassed not to have thought of it! Since I don't have the DB on multiuser (I am at home working on it), I will test it on Monday. Thank you.
January 31, 200422 yr Author I also set the new DB up to have several fields, each for a different DB/Script. This way, I can have the single new DB and have all other DB's refer to it and to a specific field in it, before running resource-heavy scripts. Great idea!
Create an account or sign in to comment