diff options
| author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-11-17 15:55:43 +0100 |
|---|---|---|
| committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-11-17 16:20:47 +0100 |
| commit | 5a335c4d955bbb74a50ca30ac45d30f6ef66774d (patch) | |
| tree | 490aae02c5cb2a2d1774c8b7094e9c7bc4c2c3a8 /docker-compose.yml | |
| parent | 4aa18590b3af27c9cb3cd3c2fc8c0a70e9a8758e (diff) | |
| download | gitlab-ce-5a335c4d955bbb74a50ca30ac45d30f6ef66774d.tar.gz | |
Remove the selects when counting the last page
The last page of the first collection is only loaded into memory when
it is being viewed. If it isn't loaded into memory, the `#size` call
triggers a count query.
This `#count` would generate an invalid query if our custom preloaded
counts are included by adding a separate `as count_column` alias on
top of the count aliases. Removing the selects in this case will make
sure a valid `COUNT(*)` is generated.
Diffstat (limited to 'docker-compose.yml')
0 files changed, 0 insertions, 0 deletions
