DDC-1413: Automatically create index for discriminator column #2037

doctrinebot opened this Issue Oct 11, 2011 · 1 comment

2 participants


Jira issue originally created by user ajbrown:

It would be nice if the command line orm schema-tool would suggest an index on the discriminator column for single inheritance tables. Since that column would almost always be in the query, I can't think of a case when you wouldn't want it to be in an index


Comment created by holtkamp:

This topic suggests it is a bad practice though:

In case of a big STI hierarchy, this might become usefull, additional testing required. However, as soons as a STI hierarchy becomes big, Class Table Inheritance might be more appropriate...

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment