Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION is a good practice?
Message
From
30/10/2008 11:29:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/10/2008 10:46:43
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01358362
Message ID:
01358376
Views:
23
>Hi.
>Using SET RELATION is a good practice with very big databases/tables?
>Thanks!

Let's say you set a relation from TableA to TableB. Just consider that for each and every record you select in TableA, a corresponding record is automatically selected in TableB. Since this is done by an internal use of SEEK, i.e. an indexed search, this should not be exceedingly slow, even on large tables. But the fact of doing the search every time may not actually be necessary, i.e., you may not need the record from the other table every time.

I used to use SET RELATION and SET FILTER for reports; but I now find it very inconvenient. For reports, it is easier to just select all the required data into a single cursor.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform