Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore Speed Problem
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Rushmore Speed Problem
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01429151
Message ID:
01429151
Vues:
153
Hi Gang!

I have a form which has a combobox that I want to populate from a field from a table called REGTRANS. The field is PTNT_NAME (C-30).

In the LOAD of the form, I have this code....
*!*	*Create data for the patient Name combobox
SELECT DISTINCT ptnt_name FROM regtrans WHERE DELETED() = .F. INTO CURSOR csr_names ORDER BY ptnt_name
I have an index in REGTRANS called DELETED which is indexed on DELETED().
The form has SET DELETED ON.

For the combobox, here are the DATA properties...
CONTROLSOURCE     csr_names
ROWSOURCE            csr_names.ptnt_name
ROWSOURCETYPE    2 - ALIAS
VALUE                       ""
When I bring up the form, the SELECT statement takes about 35 seconds to populate the combobox....

REGTRANS has 2,693,163 records and the SELECT statement pulls out 244,799 recods (for the combobox). When form comes up, the combobox works fine (very responsive and I can do the Incremental Search.

It just takes TOO DANG LONG to come up!!!

Does anyone see anything wrong in how I set this up (Rushmore????).

Thanks!
Tommy Tillman A+ NetWork+ MCP
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform