Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slow Local View
Message
De
13/03/2004 12:00:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Slow Local View
Divers
Thread ID:
00885953
Message ID:
00885953
Vues:
75
I've been using FoxPro for a number of years but am just now starting to work with local and remote views.

I have a 1+ gig file that contains over a million records. I created a view of the table but when I USE dbc!newLocalView it now takes several minutes to load the view with data. During this time the user has to just wait until the query finishes running. Is there a way that that query can run in the background and release control back to the user immediately after the USE statement. There are many activities the user can do that are not related to the view that would be loading in the background, thus they could be more productive if they did not have to wait for the query to load before they can start using the application.

I know that I can create paramerized views and limit the amount of requested data, thus it loads quickly but I want the user to have access to the entire database, once it is loaded.

I've looked at several properties related to views but the ones that seem to relate to restricting the amount of data being 'fetched' only apply to remote views.

In short, I'd like to use a local view but have it load instantly much like a normal DBF table. The reason I'm trying to convert from using a DBF table to view is to avoid data/table corruption issues. I've heard that if you are using views, you will rarely have a corrupted table. Is this correct?

TIA,
Robert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform