Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Requery or not to Requery...
Message
De
16/08/1999 17:52:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
To Requery or not to Requery...
Divers
Thread ID:
00254312
Message ID:
00254312
Vues:
66
I am wondering what approaches have been devised to efficiently requery views in a multi-user VFP application.

You ideally would like to have every user see the latest data at all times. On a system with lots of users making changes on large data sets, this may not be feasible from a performance standpoint.

How can you balance the contradictory goals of good performance and up-to-date data?

To detect changes made by other users, I suppose you must call REFRESH(), then OLDVAL() and CURVAL() on the subset of fields you are interested for each alias concerned. This requires a lot of setup and instance code for each situation, and I am not sure how efficient it would be.

For record-oriented data entry forms, this might be sufficient, but for grids you can't easily find out if records other than the one you are on have changed. How can you efficiently keep a grid up-to-date when other users are constantly changing the view bound to the grid?

I have seen systems that use a timer to keep requerying the grid record source whenever the user has been sitting on one record for some minimum interval, but this seems to incur too much overhead. Requerying unconditionally on every form and page activate also seems like overkill.

Are there any books or magazine articles that deal with this subject in detail?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform