How do I specify type of index in django? (btree vs hash, etc)

Viewed 2112

Like the title says, how do I specify the type of index I want on a field in a model in django.

class Person:
     ...
     age = models.IntegerField(db_index=True)

But now what? How do I make sure it is a btree index and not a hash. Or is this all done automatically for us and there is some large table that django uses for choosing the "optimal index type"

1 Answers
Related