GitLab Bot
cd9a4ce166
Add latest changes from gitlab-org/gitlab@master
2024-05-30 18:15:18 +00:00
GitLab Bot
37439afe69
Add latest changes from gitlab-org/gitlab@master
2022-12-15 12:08:09 +00:00
GitLab Bot
e804afddbf
Add latest changes from gitlab-org/gitlab@master
2022-02-28 18:14:03 +00:00
GitLab Bot
8188ca655a
Add latest changes from gitlab-org/gitlab@master
2022-02-28 15:13:55 +00:00
GitLab Bot
b8d516a687
Add latest changes from gitlab-org/gitlab@master
2021-11-24 15:14:19 +00:00
GitLab Bot
ab8eecd62c
Add latest changes from gitlab-org/gitlab@master
2021-07-23 12:09:05 +00:00
GitLab Bot
7a4a8bd5ab
Add latest changes from gitlab-org/gitlab@master
2021-04-08 15:09:06 +00:00
GitLab Bot
6aa5c04c74
Add latest changes from gitlab-org/gitlab@master
2020-09-30 12:09:53 +00:00
GitLab Bot
742a7f35ac
Add latest changes from gitlab-org/gitlab@master
2020-05-12 18:07:54 +00:00
Andreas Brandl
259493bb4c
Enable tablesample count strategy by default
...
https://gitlab.com/gitlab-org/gitlab-ce/issues/58792
2019-07-24 17:00:34 +00:00
Andreas Brandl
ded299c05b
Seed tablesample strategy
...
This produces stable approximate counts among invocations unless the
table changed.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58791 .
2019-03-12 20:03:52 +01:00
Stan Hu
b35a6880b9
Fix counting of groups in admin dashboard
...
1. Ignore tables that use STI in reltuples count strategy.
Models that use Rails' single-type inheritance, such as `Group` and
`CiService`, need an additional WHERE clause to count the total
properly, which isn't supported by the reltuples strategy. For now,
we just omit these from the statistics sampling and rely on the other
strategies to get this data.
2. Fix tablesample count strategy not counting groups properly.
Models such as `Group` needs a WHERE clause to distinguish it from
namespaces. We now add in the WHERE clause if STI is in use.
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/7435
2019-03-11 23:50:47 -07:00
Andrew Newdigate
3288e1a874
Adds the Rubocop ReturnNil cop
...
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
2019-03-06 17:51:56 +02:00
Jan Provaznik
3720d02b8b
Use approximate counts for big tables
2018-12-06 16:07:14 +00:00
Andreas Brandl
9c059a026d
Lower the tablesample thresholds/targets.
...
The numbers in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22650#note_117645395
are quite promising with that target.
2018-12-03 21:26:54 +01:00
Andreas Brandl
474fd9138c
Move strategies in their own files
...
This improves readability quite a bit.
2018-12-03 21:26:53 +01:00