- 07 Nov, 2018 14 commits
-
-
Toon Claes authored
Add an index to the `store` column on `uploads`. This makes counting local uploads faster. Also, there is no longer need to check for objects with `store = NULL`. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18557 --- ### Query plans Query: ```sql SELECT COUNT(*) FROM "uploads" WHERE ("uploads"."store" = ? OR "uploads"."store" IS NULL) ``` #### Without index ``` gitlabhq_production=# EXPLAIN ANALYZE SELECT uploads.* FROM uploads WHERE (uploads.store = 1 OR uploads.store IS NULL); QUERY PLAN --------------------------------------------------------------------------------------------------------------- Seq Scan on uploads (cost=0.00..601729.54 rows=578 width=272) (actual time=6.170..2308.256 rows=545 loops=1) Filter: ((store = 1) OR (store IS NULL)) Rows Removed by Filter: 4411957 Planning time: 38.652 ms Execution time: 2308.454 ms (5 rows) ``` #### Add index ``` gitlabhq_production=# create index uploads_tmp1 on uploads (store); CREATE INDEX ``` #### With index ``` gitlabhq_production=# EXPLAIN ANALYZE SELECT uploads.* FROM uploads WHERE (uploads.store = 1 OR uploads.store IS NULL); QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- Bitmap Heap Scan on uploads (cost=11.46..1238.88 rows=574 width=272) (actual time=0.155..0.577 rows=545 loops=1) Recheck Cond: ((store = 1) OR (store IS NULL)) Heap Blocks: exact=217 -> BitmapOr (cost=11.46..11.46 rows=574 width=0) (actual time=0.116..0.116 rows=0 loops=1) -> Bitmap Index Scan on uploads_tmp1 (cost=0.00..8.74 rows=574 width=0) (actual time=0.095..0.095 rows=545 loops=1) Index Cond: (store = 1) -> Bitmap Index Scan on uploads_tmp1 (cost=0.00..2.44 rows=1 width=0) (actual time=0.020..0.020 rows=0 loops=1) Index Cond: (store IS NULL) Planning time: 0.274 ms Execution time: 0.637 ms (10 rows) ``` Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6070
-
Filipa Lacerda authored
Remove gitlab-ui loading icon from global (EE) See merge request gitlab-org/gitlab-ee!8170
-
Clement Ho authored
-
Filipa Lacerda authored
EE port of mr-image-commenting See merge request gitlab-org/gitlab-ee!8254
-
Dmitriy Zaporozhets authored
Merge branch 'ee-52771-ldap-users-can-t-choose-private-or-internal-when-creating-a-new-group' into 'master' Fix new group visibility form for non-admins See merge request gitlab-org/gitlab-ee!8263
-
Phil Hughes authored
-
Grzegorz Bizon authored
Support epics autocomplete for project objects Closes #7472 See merge request gitlab-org/gitlab-ee!8180
-
Luke Bennett authored
Removes an owner permission check before rendering the visibility select radio inputs as non-admins will not have permission. Ensures all users creating a group can select its visibility.
-
Evan Read authored
Docs: add notes on group SSO user management See merge request gitlab-org/gitlab-ee!8260
-
Stan Hu authored
Geo - Redirect user back to the secondary after a logout & re-login via the primary Closes #4459 See merge request gitlab-org/gitlab-ee!8157
-
Evan Read authored
Update link to code quality docs See merge request gitlab-org/gitlab-ee!8221
-
Cynthia Ng authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
In Ruby 2.4, `URI.join("http://test//", "a").to_s` will remove the double slash, however it's not the case in Ruby 2.5. Using chomp should work better for the intention, as we're not trying to allow things like ../ or / paths resolution. This helper method append path to host, making sure there's one single slash as path separator.
-
- 06 Nov, 2018 26 commits
-
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Rémy Coutable authored
Send notifications for epic status change Closes #7272 See merge request gitlab-org/gitlab-ee!8247
-
Douglas Barbosa Alexandre authored
Geo: Improve read-only message in secondary nodes for actionable screens Closes #8124 See merge request gitlab-org/gitlab-ee!8238
-
Gabriel Mazetto authored
-
Marcia Ramos authored
Docs outline scaling options See merge request gitlab-org/gitlab-ee!7824
-
Kamil Trzciński authored
Configurable GitHub static context for statuses integration Closes #6696 See merge request gitlab-org/gitlab-ee!8235
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
Redirect user back to the secondary after a logout & re-login via the primary.
-
Jarka Košanová authored
- add sending notifications to epics close/reopen services - add epics status change email templates - add methods to epics mailer and notification service
-
Achilleas Pipinellis authored
added step to populate fdw tables when using external database See merge request gitlab-org/gitlab-ee!8113
-
Douwe Maan authored
EE: Rewrite SnippetsFinder to improve performance Closes gitlab-ce#52639 See merge request gitlab-org/gitlab-ee!8105
-
Phil Hughes authored
ee port: Renders a warning block for archived job See merge request gitlab-org/gitlab-ee!8250
-
Filipa Lacerda authored
-
Phil Hughes authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Robert Speicher authored
Group SAML status badges on members page Closes #4515 See merge request gitlab-org/gitlab-ee!5807
-
Robert Speicher authored
Move EE prepend/include to the end of workers See merge request gitlab-org/gitlab-ee!8206
-
Robert Speicher authored
Move EE prepend/include to the end of presenters See merge request gitlab-org/gitlab-ee!8205
-
Robert Speicher authored
Move EE prepend/include to the end of policies See merge request gitlab-org/gitlab-ee!8204
-
Jarka Košanová authored
- add epics routes to the application_helper - create epics action in AutocompleteController
-
Steve Azzopardi authored
CE upstream - 2018-11-06 12:21 UTC Closes #8040 See merge request gitlab-org/gitlab-ee!8251
-
Robert Speicher authored
Move EE prepend/include to the end of mailers See merge request gitlab-org/gitlab-ee!8202
-