Closed
Bug 1201140
Opened 9 years ago
Closed 9 years ago
Add existing indexes to the corresponding orm model fields
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mdoglio, Assigned: mdoglio)
References
Details
Attachments
(1 file)
To completely replace the reference data sql template files with orm-generated code we need make it aware of the existing indexes. This should as easy as adding either a index=True on the corresponding field or via the index_together Meta attribute
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8660801 -
Flags: review?(emorley)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
Comment 2•9 years ago
|
||
Comment on attachment 8660801 [details] [review]
PR 960
Travis is failing.
Attachment #8660801 -
Flags: review?(emorley)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8660801 [details] [review]
PR 960
all fixed :-)
Attachment #8660801 -
Flags: review?(emorley)
Comment 4•9 years ago
|
||
Comment on attachment 8660801 [details] [review]
PR 960
Looks good, ty :-)
Attachment #8660801 -
Flags: review?(emorley) → review+
Comment 5•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/aa91f022ab34a3123d28537f5bc8c6ee1728f74c
Bug 1201140 - Add sqlparse to the requirements file
This is required to execute migrations using migrations.RunSQL.
See https://docs.djangoproject.com/en/1.8/ref/migration-operations/#runsql for more info
https://github.com/mozilla/treeherder/commit/cbe1ab610eec648a26320aaf8d7eaf66be17f3ec
Bug 1201140 - Add key indexes to the ref data orm classes
Key indexes are added in both the orm classes and the initial migration.
For the fulltext indexes that wasn't possible, since The django orm doesn't support it.
I used a RunSQL operation to add them via sql.
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•