Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to seek data in view
Message
From
07/09/2008 16:00:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
07/09/2008 13:16:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345528
Message ID:
01345579
Views:
8
>I use this in the code:
>
>select stock && stock.dbf
>mkey=this.value
>seek mkey order stock_id
>
>with 10+ clients doing invoicing at the same time, I always got Open Table screen pop-up.
>(is there any limitation with VFP, or .dbf in multi-users environment?)
>
>then I think if I use view instead of table, it might help.
>
>I changed it to:
>
>select v_stock && this is view
>mkey=this.value
>locate for stock_id=this.value
>
>I haven't test this yet in the real situation.
>
>a) will it get rid of Open Table pop-up screen?
>b) will it slower? since it's locate instead of seek.
>c) any suggestion?
>
>thanks for the help

Locate with a small set of records in a view will be faster than having to create the index and use seek. If you have the index permanently then seek is faster.

If you have a grid and/or a timer that changes work alias before you do the seek, you could get the Open Table dialog. You really need to debug that and no worry about changing from seek to locate or views.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform