Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internal functionality of a local view?
Message
From
11/08/1999 08:55:35
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00252451
Message ID:
00252467
Views:
11
Are you using parameterized views? You should add indexes for the parameters also. For example...

CREATE SQL VIEW v_Junk as ;
select * from bigtable ;
where somefield = ?lcParameter

use v_Junk NODATA

lcParameter = "findthis"

=requery("v_Junk")

If bigtable.dbf has an INDEX ON SOMEFIELD TAG sometag, this query should be as fast as if you did this...

USE bigtable
SET FILTER TO somefield = "findthis"
BROWSE

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform