Entity Framework use of indexes and foreign keys
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2009-11-15T17:09:19Z
Indexed on
2010/05/10
4:08 UTC
Read the original article
Hit count: 350
entity-framework
|indexing
I want to be able to search a table quite quickly using the Entity Framework, say if I have a Contacts table, a JobsToDo table and a matrix table linking the two tables e.g Contacts_JobsToDo_Mtx and I specify two foreign keys in the Contacts_JobsToDo_Mtx table, if I wanted to search this Mtx table, do I need to specify an index on the two foreign keys? Or by the fact that they are two foreign keys are they considered indexed on them anyway? Will the Entity Framework be able to search through the Mtx table quickly without having to specfiy an index on both keys? Thanks!
© Stack Overflow or respective owner