Opened 8 years ago
Closed 8 years ago
#28258 closed Cleanup/optimization (fixed)
Optimize Oracle introspection by using LISTAGG
Reported by: | Mariusz Felisiak | Owned by: | Mariusz Felisiak |
---|---|---|---|
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
It's more optimal to use LISTAGG in Oracle introspection instead of ordering and multiple rows per each constraint.
Change History (4)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
Before PR (on Oracle):
migrations.test_operations.OperationTests ... 198 sec
inspectdb.tests ... 146 sec
introspection.tests ... 33 sec
schema.tests ... 363 sec
after PR (on Oracle):
migrations.test_operations.OperationTests ... 101 sec
inspectdb.tests ... 41 sec
introspection.tests ... 29 sec
schema.tests ... 146 sec
comment:3 by , 8 years ago
For comparison:
11,418 tests -> took 27 min (before PR),
11,424 tests -> took 18 min (after PR).
PR