Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on indexing
Message
From
30/12/2001 21:00:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/12/2001 16:03:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00598948
Message ID:
00599273
Views:
20
>Thank you Craig. Thats the way he is currently doing it. We are just looking into switching from 2.6 to 7 and he was wondering if there was a better way to do it in the new version.

Yes, use a view, it can have the "order by" clause with DESC or ASCE subclauses for each expression in the list. Frankly, whenever I see a complex index expression, I usually feel there's a way to live without it, and start investigating the reasons why would we use such a thing at all. I remember I was using such indexes for reporting purposes, or to ease some searches - and dropped them one by one as I was learning SQL. It eventually turned out that a well thought set of one-field tags and SQL Selects whenever you need them were easier to maintain, and faster to run than complex indexes.

Of course, you will know your data better than I can ever know them, so you're the only one to judge the reason of existence of such an index.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform