I have a database with two data tables linked in a many to many relationship by a joining table containing the two primary key fields of the data tables as Foreign Keys and its own PK.
The joining table PK is set to Text and the PK's in the data tables are Programatically numbered sequentially as data is entered via the form.
The Joining tbl PK combines the two integer PK's programatically with a "-" inbetween; this significantly eases data validation as it will be impossible to enter duplicate info due to ref integrity.
My concern is performance due to indexing on a text field as the joining table will very quickly contain a lot of data.
I would assume that performing searches / filters that go through the joining table will be slowed by the text PK is this correct?
Also if anyone has any ideas on how to make this process more efficient while maintaining efficient data validation I would be very grateful
Jon
The joining table PK is set to Text and the PK's in the data tables are Programatically numbered sequentially as data is entered via the form.
The Joining tbl PK combines the two integer PK's programatically with a "-" inbetween; this significantly eases data validation as it will be impossible to enter duplicate info due to ref integrity.
My concern is performance due to indexing on a text field as the joining table will very quickly contain a lot of data.
I would assume that performing searches / filters that go through the joining table will be slowed by the text PK is this correct?
Also if anyone has any ideas on how to make this process more efficient while maintaining efficient data validation I would be very grateful
Jon