mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1413: Automatically create index for discriminator column #1772
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 11, 2011).
Originally assigned to: @Ocramius on GitHub.
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
@doctrinebot commented on GitHub (Jun 12, 2013):
Comment created by holtkamp:
This topic suggests it is a bad practice though:
https://forum.hibernate.org/viewtopic.php?f=9&t=961578
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...
@malukenho commented on GitHub (Jan 5, 2017):
@Ocramius can be closed as
invalidorwon't fix