Track and act upon the number of executed queries
This ensures that we have more visibility in the number of SQL queries
that are executed in web requests. The current threshold is hardcoded to
100 as we will rarely (maybe once or twice) change it.
In production and development we use Sentry if enabled, in the test
environment we raise an error. This feature is also only enabled in
production/staging when running on GitLab.com as it's not very useful to
other users.
Showing
changelogs/unreleased/query-counts.yml
0 → 100644
config/initializers/query_limiting.rb
0 → 100644
doc/development/query_count_limits.md
0 → 100644
lib/gitlab/query_limiting.rb
0 → 100644
lib/gitlab/query_limiting/middleware.rb
0 → 100644
lib/gitlab/query_limiting/transaction.rb
0 → 100644
spec/lib/gitlab/query_limiting_spec.rb
0 → 100644
Please
register
or
sign in
to comment