Hi,
I have a table with a single unique VARCHAR(512) field. I want to have another table hold a foreign key reference to this first table. Both tables use InnoDB. If I add a VARCHAR(512) key to the second table and add a foreign key constraint on it will the 512 bytes long data be held twice?
If so, is there a way to hold only a reference to the index and not to the varchar itself?
In short, my question is, in InnoDB is there an efficient way to hold foreign keys to long VARCHAR fields?
Thank you very much,
Yaniv