Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create View question, how to set the index key
Message
From
12/07/2003 07:29:11
 
 
To
12/07/2003 04:38:29
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00809543
Message ID:
00809553
Views:
33
Hi Agnes

>I use "view" to create serveral tables.
>However, How can I set the index key ?? As i need to use "SEEK" in my program ?

You cannot define a persistent index on a view. However, you can create an index on a view yourself because views are always local to the user and are opened exclusive.
SELECT [view]
*** Make sure that you do not have Table Buffering enabled
*** Can't build an index on Table buffered view!
CURSORSETPROP('buffering', 3 )
*** Build the index
INDEX ON [expression] TAG [name]
>
>More, as I use create view, there is an option to choose [no of records] or [percent] .
>Will this option affect the performance of the view ???

The short answer is 'it depends'. There will be some impact because you are forcing some addditional processing, but whether you would ever notice it is another question. If you need either of those functions, use them.
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform