Opened 11 years ago
Closed 5 years ago
#5568 closed New feature (fixed)
DROP INDEX subcommand
Reported by: | Paul Smith | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | master |
Severity: | Normal | Keywords: | management sql indexes drop index |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Attached is a patch for a subcommand of django-admin.py that prints DROP INDEX SQL statements for a given app, as in:
$ django-admin.py sqldropindexes my_app BEGIN; DROP INDEX my_app_people_name; DROP INDEX my_app_people_email; COMMIT;
This is useful for speeding up a big INSERT. Indexes can then be rebuilt with django-admin.py sqlindexes my_app
.
Attachments (1)
Change History (7)
Changed 11 years ago by
Attachment: | patch-drop_indexes.diff added |
---|
comment:1 Changed 11 years ago by
Summary: | [patch] DROP INDEX subcommand → DROP INDEX subcommand |
---|
comment:2 Changed 11 years ago by
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 Changed 7 years ago by
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:4 Changed 7 years ago by
Easy pickings: | unset |
---|---|
Needs tests: | set |
comment:5 Changed 6 years ago by
UI/UX: | unset |
---|
comment:6 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Change UI/UX from NULL to False.