Refer to GinIndex instead of RunSQL in ArrayField docs. Add GinIndex refs to HStoreField and JSONField docs.
At the moment of writing this, the ArrayField docs says "A more useful index is a GIN index, which you should create using a RunSQL operation."
Since 1.11, you can use django.contrib.postgres.indexes.GinIndex
to create GIN indexes. I think it's better to recommend it and not RunSQL.
Also, HStoreField and JSONField docs totally miss the indexing problem, this should also be fixed.
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Patch needs improvement: |
set
|
Owner: |
set to Tim Graham <timograham@…>
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
PR