You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After discussion on #11846, we decided that the way to handle this is to allow multiple named indexes to be created over columns, while still preserving the current semantics (i.e. addressing by ordered property set) for unnamed indexes.
Original issue:
Add support for column sort order to migrations, metadata, and reverse engineering.
Add API to specific ascending/descending columns in an index ( CREATE INDEX IX_1 ON Table ( Col1 DESC, Col2 ASC) )
Add to reverse engineering database model (prototype here)
Adapt to older version of SQLite (sort order is not supported < 3.8.9)
Reacted by Martin Andreas Ullrich, Bauyrzhan, exytab, Sergey Koshelev, Kostiantyn Nesterenko, Albert Kapitanov, Ali Kleit, Varorbc, Adrian Schmutzler, Victor Lee and 9 more
@jjxtra This issue is in the Backlog milestone. This means that it is not going to happen for the 2.1 release. We will re-assess the backlog following the 2.1 release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.
Note that this is being done in Npgsql as part of npgsql/efcore.pg#705. It would ideally be better to have implemented here as well so that Npgsql can align (and reuse the same SortOrder enum, possibly).
@bhugot This issue is in the Backlog milestone. This means that it is not currently planned for any upcoming release. We will re-assess the backlog for 5.0 and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.
changed the title [-]Support indexes with DESC order by allowing named indexes[/-][+]Support multiple indexes over same column(s) with differing ASC/DESC or collation[/+]on Apr 16, 2020
Another variant of this issue is for having multiple indexes on the same column, but with different collations (supported by PostgreSQL and Sqlite, but not SQL Server and MySQL).
Activity
jjxtra commentedon Mar 5, 2018
Is this going to happen anytime soon? Using EfCore.Shaman to workaround this issue and others at the moment...
ajcvickers commentedon Mar 5, 2018
@jjxtra This issue is in the Backlog milestone. This means that it is not going to happen for the 2.1 release. We will re-assess the backlog following the 2.1 release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.
[-]Support column sort order in indexes[/-][+]Support indexes with DESC order by allowing named indexes[/+]roji commentedon Feb 18, 2019
Note that this is being done in Npgsql as part of npgsql/efcore.pg#705. It would ideally be better to have implemented here as well so that Npgsql can align (and reuse the same SortOrder enum, possibly).
bhugot commentedon Dec 10, 2019
Hello any news ont this feature
ajcvickers commentedon Dec 10, 2019
@bhugot This issue is in the Backlog milestone. This means that it is not currently planned for any upcoming release. We will re-assess the backlog for 5.0 and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.
[-]Support indexes with DESC order by allowing named indexes[/-][+]Support multiple indexes over same column(s) with differing ASC/DESC or collation[/+]roji commentedon Apr 16, 2020
Another variant of this issue is for having multiple indexes on the same column, but with different collations (supported by PostgreSQL and Sqlite, but not SQL Server and MySQL).
lajones commentedon May 28, 2020
Clearing Milestone to reconsider this, or part of this, for 5.0 per this comment.
32 remaining items
Add support for index sort order (descending)
Add support for index sort order (descending)
Add support for index sort order (descending) (#27210)
[-]Add support for index ordering (ASC/DESC)[/-][+]Support for index ordering (ASC/DESC)[/+]