Answer the question
In order to leave comments, you need to log in
Is it possible to make an index by date desc , not asc?
Good afternoon,
I really need to create an index on the desc date (I need to count 90 days ahead, every day on the previous date), so the solution to this problem is very important, the slowness goes with a terrifying progression every day:
1) I wrote before the entity:
@ORM\Table(indexes={
* @ORM\Index(name="date_idx", columns={"date_mod"})})
CREATE INDEX date_idx ON mod (date_mod DESC)
Answer the question
In order to leave comments, you need to log in
Apparently, it is impossible:
https://github.com/doctrine/orm/issues/8128
I also did not find it in the documentation and on SO.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question