Closed
Description
Using Postgres every time Model.sync is called a new index is generated for the id field. As an example, I created the User
model on the db
database. When I run psql database
on the command line and do \d user
after restarting the server a few times I get these results.
Indexes:
"user_id_idx" btree (id)
"user_id_idx1" btree (id)
"user_id_idx10" btree (id)
"user_id_idx2" btree (id)
"user_id_idx3" btree (id)
"user_id_idx4" btree (id)
"user_id_idx5" btree (id)
"user_id_idx6" btree (id)
"user_id_idx7" btree (id)
"user_id_idx8" btree (id)
"user_id_idx9" btree (id)
Metadata
Assignees
Labels
No labels