Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load forms much faster
Message
De
03/10/2014 13:56:20
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Load forms much faster
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01608745
Message ID:
01608745
Vues:
197
Hey all

Let me start by saying, I've been using this technique in Visual MaxFrame a long time. I would like any extra information that I can get on this approach though.

I just conducted a little experiment. I believe FoxPro obtains a file handle and then fills internal buffers when it first sees a USE command.

If so, then a form with a private data session, which opens tables will take the same amount of time every time and within reason that is true.

However, if I open the tables in the default data session before the private data session form loads, the form itself loads much faster.

I created a simple private datasession form. The load opens the tables. The init returns .f.
I ran a loop of 50 iterations with DO FORM. It took 120+ seconds.

I then opened the tables first and re-ran the 50 iterations. It took 10 seconds.

In side the form, USED() shows the files are not in use, yet clearly, the file handle and buffers were populated.

So - who can state with authority, what will happen to the data, if in the private data session form, a change is made and tableupdate is run? Will the data make it physically to the file or does it hang around in the buffer?

If power goes off, does the data get wiped out?

Having all the tables opened, does not damage the files during a power failure in my experience. Anyone care to shed some light on this?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform