Performance Optimizations:

1. Add index on testrun.submissionId
2. replace lti_parameters.size with lti_parameters.present? to prevent COUNT query

Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
This commit is contained in:
Sebastian Serth
2018-08-23 17:29:14 +02:00
parent 40492479ba
commit 6bd1dac756
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddIndexForTestrunSubmissionId < ActiveRecord::Migration
def change
add_index :testruns, :submission_id
end
end