Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET RELATION is a good practice?
Message
De
30/10/2008 11:29:44
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/10/2008 10:46:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01358362
Message ID:
01358376
Vues:
24
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform