Commit graph

7 commits

Author SHA1 Message Date
Bob Van Landuyt
3d4ba90c50 Count occurrences of a specific query in the query recorder. 2017-12-04 17:43:48 +01:00
Rémy Coutable
c4de6ec496 Merge branch 'improve-extra-queries-output' into 'master'
Improve output for extra queries in specs

See merge request gitlab-org/gitlab-ce!15537
2017-11-22 16:33:10 +00:00
Sean McGivern
db1925f917 Improve output for extra queries in specs
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.
2017-11-22 15:08:55 +00:00
Stan Hu
52b6cbcb9d Add QUERY_RECORDER_DEBUG environment variable to improve performance debugging 2017-11-21 21:32:56 -08:00
Bob Van Landuyt
6dbd21abac Extend the QueryRecorder matcher
So it can report the queries that we're run more compared to the
control point.
2017-09-14 17:45:44 +02:00
Kamil Trzcinski
062806e47d
Define baseline for test for pipelines serializer 2017-04-06 14:32:39 +02:00
James Edwards-Jones
9c623e3e5d Added QueryRecorder to test N+1 fix on Milestone#show 2016-12-20 16:59:48 +00:00