on 7/31/01 16:04, jda at jda at his D.OT com wrote:
> I'm using RB with the latest build of Valentina to manage a single > file database system. Since the index can become corrupted > (especially during development!), I've added a function to the > application that allows the user to rebuild the indexes. > > While the indexes are being rebuilt (simply by turning indexing off > and then on), I put up a dialog box with the turning barber pole and > the instructions "press Command-. to stop". As I loop through the > indexed fields I check for the Command-. keypress and leave the loop > if it is detected. > > This works OK for small databases, but when the db gets large (in > this case 4000 records), there is one field that indexes extremely > slowly (takes 30-45 seconds on a beige G3). While this happens, the > barber pole doesn't turn and keypresses aren't detected. Not good. > So... > > 1. Is there a way to make Valentina yield time (or at least yield > time to the app using it)?
What you mean? in fact during indexing system must get time. Your clocks on top of screen go ?
If you ask about YOUR app, then this already threading inside of your app.
> 2. If I put this routine in an RB thread, will Valentina behave accordingly?
You can out in thread progress bar or other animated cursor. But you will not be able to interrupt thread of indexing right now from REALbasic.
> 3. Would it be possible to update this large index incrementally?
no
> I think the answers to these three are all "no", but I thought I'd > ask. Any other advice would be appreciated.
Hi Jon,
I am going resolve such kind of problems with changing a little ideology of threaded tasks in kernels.
this is not in nearest time, closer to Server.
-- Best regards, Ruslan Zasukhin
------------------------- Paradigma.
e-mail: ruslan@paradigmasoft.com web : http://www.paradigmasoft.com
To subscribe to the Valentina mail list send a letter to valentina-on at lists D.OT macserve.net ©2001 Ruslan Zasukhin |