Opened 7 years ago
Closed 7 years ago
#28465 closed Cleanup/optimization (fixed)
Unify index SQL creation code
Reported by: | Claude Paroz | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently, database index creation may happen in two places:
Database.SchemaEditor._create_index_sql
Index.create_sql
/Index.get_sql_create_template_values
I don't think it's a sane situation. We should decide who's responsible for index creation code and stick with it.
Change History (4)
comment:1 by , 7 years ago
Has patch: | set |
---|
comment:2 by , 7 years ago
Triage Stage: | Unreviewed → Accepted |
---|
This is something I noticed as well when working on the deferred references stuff for #25530.
Thanks for tackling it Claude!
comment:3 by , 7 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR