擅长:python、mysql、java
<p>如果有人想知道他们是否需要<code>index_together</code>除了<code>unique_together</code>来获得索引的性能优势,Postgres的答案是<a href="http://www.postgresql-archive.org/Difference-between-UNIQUE-constraint-vs-index-td1877270.html" rel="noreferrer">no</a>,它们是<a href="https://medium.com/flatiron-engineering/uniqueness-in-postgresql-constraints-versus-indexes-4cf957a472fd" rel="noreferrer">functionally the same.</a></p>