Commit Graph

2 Commits

Author SHA1 Message Date
Nate Collings e8a11e12a9 don't add the graded_at index on pg < 9.5
test plan:
  - make sure the index is created on
    postgres 9.5+

refs PFS-10106

Change-Id: I93fdcdb796813324d3ee93f47157b1a76f995895
Reviewed-on: https://gerrit.instructure.com/142891
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
2018-03-07 21:14:28 +00:00
Nate Collings 4ec3a769ba add an index on submissions.graded_at
This is to improve some very slow queries
that are filtering on huge numbers of
submissions.

test plan:
  - make sure the index exists

refs PFS-10106

Change-Id: I1b21ac3db2ec59f8a83144d263e20003550698ea
Reviewed-on: https://gerrit.instructure.com/142853
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2018-03-07 19:50:40 +00:00