I have two columns representing the start date and end date. If I wanted to create a common index for them, I would do:
* @Table(name="concerts", indexes={@Index(name="concert_dates", columns={"date_start","date_end"})})
But how would I make an index for each of them? Is this right?
* @Table(name="concerts", indexes={@Index(name="concert_date_start", columns={"date_start"}), @Index(name="concert_date_end", columns={"date_end"})})
php indexing annotations doctrine doctrine2
Doron
source share