Django: Does unique_together imply db_index=True in the same way that ForeignKey does?

For anyone coming here wondering if they need an index_together in addition to unique_together to get the index’s performance benefit, the answer for Postgres is no, they are functionally the same.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)