Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select statement takes 10x longer in app vs. vfp
Message
From
19/07/2006 16:19:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Select statement takes 10x longer in app vs. vfp
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01137819
Message ID:
01137819
Views:
65
hi everyone:

not sure why this is happening but perhaps someone can help.

i am running an sql statement that, when i run it in vfp 8.0, it takes about .09 seconds, but when i run it in my application in the main program, it takes almost a full second. these times come from the status bar.

the statement is as follows:
CREATE VIEW view_memolist as;
select pt_number, memo_date, memo_id, type, ;
t_memo.memo, t_memo.type_number from ;
t_memo, memo_type where;
t_memo.type_number = memo_type.type_number
i've run SYS(3054,2,"cResult") followed by the query, and then a messagebox with cresult, and it is not optimized at all for rushmore. not sure if maybe i'm doing it wrong here.

also, when i run it in vfp8.0, the first time it takes significantly longer than each time i run the query after that. i'm assuming that it is being stored to memory which is why it is quicker the next time, but just wanted to check if that's correct.

any suggestions would be appreciated. thanks.

Paul
Next
Reply
Map
View

Click here to load this message in the networking platform