Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another what's faster question!!!
Message
From
11/10/2002 09:42:30
 
 
To
11/10/2002 09:35:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00710254
Message ID:
00710276
Views:
12
>1) what version of VFP?
>Running 2.6 for DOS
>
>2) What OS?
>Win 98
>
>3) What RAM on the machine running so slow?
>Virtually no RAM on my computer left (waiting on a new one hopefully).
>The person who runs this program daily has a new DELL with 256.
>
>4) Can you show us the Select statements that are running so slow?
>
>select name as name, address as address, alltrim(city) + ' ' + alltrim(zip) as city;
>from rchld;
>where (rca = 'ATL' .or. rca = 'NAT');
> .and. exp_date >= date();
> .and. left(codes,1) = '1';
>into table temp;
>order by name
>

unless there is an existing index on LEFT(codes,1), left(codes,1) = '1' as not optimizable; either add an added tag, or use code = '1' and adjust the SET ANSI setting to match only up to the shorter expression, so that it becomes optimizable.

>The other selects select codes = 2 and then codes = 3.
>

Same suggestion.

>This table has 4 indexs and I'm not sure how to tell if one indexes the name field. How can I tell what an index indexes?
>

SYS(14) handles returning the index expression of a tag or IDX style index.

>Thanks,
>Sunshine
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform