Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing child tables in a relation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00429726
Message ID:
00430235
Vues:
15
Hi Neighbor:

>>set relation to padl(alltrim(str(val(usr_pk))),5,'0') into userprefs
Yeah, thats what I was thinking of doing. Then create a compound index on the child thats that converts the integer key to char and concatenates the last name field. If I have set exact off then the seek will match the parent on the first half of the index leaving the second half to order the child table on last name.

>>The other alternative is to build the child cursor (without indexes) each >>time a user changes records in the parent table. If the user selected a >>different row, you could call the SP that builds the child cursor again. >>AfterRowColChange event.

That would mean excessive round trips to the server.

Thanx,
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform