Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relative performance of views, queries & SQL-SELECT
Message
 
To
04/11/1998 17:36:31
Craig Mcclelland
Computer Fiscal Services
Sydney, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00154597
Message ID:
00154684
Views:
22
Craig,

Here's my $.02 US:

You shouldn't bother with a View, since you don't need to update the tables involved. Views are a) stored in the DBC and b) allow you to update the data in the base tables. In your case, neither of these items is important. I have never found a reason to use a Query (as a QPR file), and can't tell you any advantages to using that format. Straight SQL will be easier to change if your base table structure changes and you don't need to fill up your DBC.

If I understand what you want, I'd run SQL to get the first cursor, USE it AGAIN to get a read/write cursor and do my updates/conversions on the read/write cursor and then copy it to the text file.

HTH
Barbara

>I am after some general advice on the relative performance of views, queries or using SQL to generate intermediate tables.
>
>Roughly, the situation is as follows...
>I will be generating an extract from a Foxpro database (destined for a comma separated text file).
>The extract requires 3 tables to be joined & some filters to be applied.
>The extract will normally include about 95% of records from the primary table (after some are filtered) plus related records from the other tables.
>There could be up to 300,000 records in the primary table.
>
>Some conversions etc have to be performed on the result set before it is output to a text file.
>All the tables are local.
>
>Would there be any significant performance differences between say views or just executing SQL-SELECTs to generate this type of extract?
>
>Any tips or comments would be greatly appreciated.
>Thanks
>Craig
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform