Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore Speed Problem
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Rushmore Speed Problem
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01429151
Message ID:
01429151
Views:
154
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
Next
Reply
Map
View

Click here to load this message in the networking platform