Closed Bug 1178224 Opened 9 years ago Closed 9 years ago

Remove the unused result_set_artifact table

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We're not currently using this table - let's just remove it until an actual use-case makes itself clear.
Blocks: 1178227
eg on prod: Execute: > SELECT * FROM mozilla_inbound_jobs_1.result_set_artifact + ------- + ------------------ + --------- + --------- + --------- + ------------------ + | id | result_set_id | name | type | blob | active_status | + ------- + ------------------ + --------- + --------- + --------- + ------------------ + | NULL | NULL | NULL | NULL | NULL | NULL | + ------- + ------------------ + --------- + --------- + --------- + ------------------ + 1 rows
Attached file Remove the result_set_artifact table (deleted) —
Attachment #8627400 - Flags: review?(mdoglio)
Status: NEW → ASSIGNED
Once this lands & is deployed, I'll do a: ./manage.py run_sql -s "DROP TABLE IF EXISTS result_set_artifact;" ...on stage/prod.
Attachment #8627400 - Flags: review?(mdoglio) → review+
[emorley@treeherder-rabbitmq1.stage.private.scl3 treeherder-service]$ time ../venv/bin/python ./manage.py run_sql -s "DROP TABLE result_set_artifact;" SQL command: DROP TABLE result_set_artifact; 66 datasource found -------------------------- Sql code executed on addon-sdk - jobs: -------------------------- Sql code executed on alder - jobs: <snip> real 0m3.455s user 0m1.025s sys 0m0.140s [emorley@treeherder-rabbitmq1.stage.private.scl3 treeherder-service]$ ../venv/bin/python ./manage.py dbshell mysql> SELECT table_schema, table_name FROM information_schema.tables WHERE table_name = 'result_set_artifact'; Empty set (0.03 sec)
And prod... [emorley@treeherder-rabbitmq1.private.scl3 treeherder-service]$ time ../venv/bin/python ./manage.py run_sql -s "DROP TA BLE result_set_artifact;" SQL command: DROP TABLE result_set_artifact; 72 datasource found -------------------------- Sql code executed on accessibility - jobs: <snip> real 0m2.795s user 0m0.955s sys 0m0.141s [emorley@treeherder-rabbitmq1.private.scl3 treeherder-service]$ ../venv/bin/python ./manage.py dbshell mysql> SELECT table_schema, table_name FROM information_schema.tables WHERE table_name = 'result_set_artifact'; Empty set (0.07 sec)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
And on Heroku: [~/src/treeherder]$ heroku run './manage.py run_sql -s "DROP TABLE result_set_artifact;"' Running `./manage.py run_sql -s "DROP TABLE result_set_artifact;"` attached to terminal... up, run.5567 SQL command: DROP TABLE result_set_artifact; 44 datasource found -------------------------- Sql code executed on mozilla-central - jobs: -------------------------- Sql code executed on mozilla-inbound - jobs: -------------------------- Sql code executed on b2g-inbound - jobs: ...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: