summaryrefslogtreecommitdiff
path: root/spec/support/query_recorder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Count occurrences of a specific query in the query recorder.bvl-limit-fork-queries-on-project-showBob Van Landuyt2017-12-041-5/+14
|
* Merge branch 'improve-extra-queries-output' into 'master'Rémy Coutable2017-11-221-2/+9
|\ | | | | | | | | Improve output for extra queries in specs See merge request gitlab-org/gitlab-ce!15537
| * Improve output for extra queries in specsimprove-extra-queries-outputSean McGivern2017-11-221-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | Previously, this used `Array#-`, which would remove all queries that matches the query text in the original set. However, sometimes we have a problem with parameterised queries, where the query text is identical both times, so we'd run a query N times instead of once, and it would be hidden from the output. Replace the logic to only remove a given query N times from the actual log, where N is the number of times it appears in the expected log.
* | Add QUERY_RECORDER_DEBUG environment variable to improve performance debuggingsh-add-query-recorder-debuggingStan Hu2017-11-211-0/+7
|/
* Extend the QueryRecorder matcherBob Van Landuyt2017-09-141-2/+34
| | | | | So it can report the queries that we're run more compared to the control point.
* Define baseline for test for pipelines serializerKamil Trzcinski2017-04-061-3/+11
|
* Added QueryRecorder to test N+1 fix on Milestone#showjej-fix-n+1-queries-milestones-showJames Edwards-Jones2016-12-201-0/+40