Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
AgeCommit message (Collapse)Author
2018-03-09Merge branch 'sh-make-add-index-idempotent' into 'master'Yorick Peterse
Fix index name to Rails default to ensure idempotency See merge request gitlab-org/gitlab-ce!17654
2018-03-09Merge branch 'sh-add-section-name-index' into 'master'Yorick Peterse
Add index on section_name_id on ci_build_trace_sections table Closes #44008 See merge request gitlab-org/gitlab-ce!17632
2018-03-09Merge branch 'sh-add-missing-acts-as-taggable-indices' into 'master'Yorick Peterse
Adding missing indexes migrations from taggings table Closes #43927 See merge request gitlab-org/gitlab-ce!17563
2018-03-07Revert "Cleanup after adding MR diff's commit_count"James Lopez
This reverts commit 0b7d108 Fixed confict in schema.rb
2018-03-07Merge branch 'fix-group-boards-migration-name' into 'master'Sean McGivern
Fix group boards migration name See merge request gitlab-org/gitlab-ce!17592
2018-03-06Merge branch ↵Kamil Trzciński
'move-pipeline_default-update_head_pipeline_for_merge_request-queue-to-pipeline_processing-namespace' into 'master' Move update_head_pipeline_for_merge_request queue to `pipeline_processing` namespace Closes #43919 See merge request gitlab-org/gitlab-ce!17572
2018-03-06Move update_head_pipeline_for_merge_request queue to pipeline_processing ↵Shinya Maeda
namespace
2018-03-06Merge branch 'master' into 'issue_38337'Felipe Artur
# Conflicts: # app/models/group.rb # db/schema.rb
2018-03-06Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda
queue. This queue takes loqer precedence than pipeline_default.
2018-03-06Merge branch 'feature/sm/add-check-sum-to-job-artifacts' into 'master'Kamil Trzciński
Add checksum to ci_job_artifacts Closes #43599 See merge request gitlab-org/gitlab-ce!17354
2018-03-06Resolve "Enable privileged mode for Runner installed on Kubernetes"Mayra Cabrera
2018-03-06Change column to file_sha256. Add test. Add changelogShinya Maeda
2018-03-06Revert logic of calculating checksumShinya Maeda
2018-03-06Add post migration for checksum calculationShinya Maeda
2018-03-06Change column type to binary from stringShinya Maeda
2018-03-06Add checksum to ci_job_artifactsShinya Maeda
2018-03-05Projects and groups badges APIFrancisco Javier López
2018-03-05Address review commentsFelipe Artur
2018-03-05Cleanup after adding MR diff's commit_countJan Provaznik
* processes any pending records which are not migrated yet * bumps import_export version because of new commits_count attribute * removes commits_count fallback method
2018-03-03Bring one group board to CEFelipe Artur
2018-03-02Extend Cluster Applications to install GitLab Runner to Kubernetes clusterMayra Cabrera
2018-03-01Merge branch '42643-persist-external-ip-of-ingress-controller-gke' into 'master'Kamil Trzciński
Display ingress IP address in the Kubernetes page See merge request gitlab-org/gitlab-ce!17052
2018-03-01Update schema with latest migrationDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-03-01Make project#namespace_id not nullDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-02-28Persist runner IP address on contact (#43489)Dylan Griffith
2018-02-27Merge branch 'backstage/gb/build-stages-catch-up-migration' into 'master'Kamil Trzciński
Fully migrate build stages again Closes #38756 See merge request gitlab-org/gitlab-ce!15741
2018-02-23Merge branch 'master' into '29497-pages-custom-domain-dns-verification'Robert Speicher
# Conflicts: # db/schema.rb
2018-02-23Add DNS verification to Pages custom domainsNick Thomas
2018-02-23Merge branch 'master' into 42643-persist-external-ip-of-ingress-controller-gkeDylan Griffith
2018-02-22Optimise searching for users using short queriesYorick Peterse
This optimises searching for users when using queries consisting out of one or two characters such as "ab". We optimise such cases by searching for `LOWER(name)` and `LOWER(username)` instead of using `ILIKE`. Using `LOWER` produces a _much_ better performing query. For example, when searching for all users matching the term "a" we'd produce the following plan: Limit (cost=637.69..637.74 rows=20 width=805) (actual time=41.983..41.995 rows=20 loops=1) Buffers: shared hit=8330 -> Sort (cost=637.69..638.61 rows=368 width=805) (actual time=41.982..41.990 rows=20 loops=1) Sort Key: (CASE WHEN ((name)::text = 'a'::text) THEN 0 WHEN ((username)::text = 'a'::text) THEN 1 WHEN ((email)::text = 'a'::text) THEN 2 ELSE 3 END), name Sort Method: top-N heapsort Memory: 35kB Buffers: shared hit=8330 -> Bitmap Heap Scan on users (cost=75.47..627.89 rows=368 width=805) (actual time=9.452..41.305 rows=277 loops=1) Recheck Cond: (((name)::text ~~* 'a'::text) OR ((username)::text ~~* 'a'::text) OR ((email)::text = 'a'::text)) Rows Removed by Index Recheck: 7601 Heap Blocks: exact=7636 Buffers: shared hit=8327 -> BitmapOr (cost=75.47..75.47 rows=368 width=0) (actual time=8.290..8.290 rows=0 loops=1) Buffers: shared hit=691 -> Bitmap Index Scan on index_users_on_name_trigram (cost=0.00..38.85 rows=180 width=0) (actual time=4.369..4.369 rows=4071 loops=1) Index Cond: ((name)::text ~~* 'a'::text) Buffers: shared hit=360 -> Bitmap Index Scan on index_users_on_username_trigram (cost=0.00..34.41 rows=188 width=0) (actual time=3.896..3.896 rows=4140 loops=1) Index Cond: ((username)::text ~~* 'a'::text) Buffers: shared hit=328 -> Bitmap Index Scan on users_email_key (cost=0.00..1.94 rows=1 width=0) (actual time=0.022..0.022 rows=0 loops=1) Index Cond: ((email)::text = 'a'::text) Buffers: shared hit=3 Planning time: 3.912 ms Execution time: 42.171 ms With the changes in this commit we now produce the following plan instead: Limit (cost=13257.48..13257.53 rows=20 width=805) (actual time=1.567..1.579 rows=20 loops=1) Buffers: shared hit=287 -> Sort (cost=13257.48..13280.93 rows=9379 width=805) (actual time=1.567..1.572 rows=20 loops=1) Sort Key: (CASE WHEN ((name)::text = 'a'::text) THEN 0 WHEN ((username)::text = 'a'::text) THEN 1 WHEN ((email)::text = 'a'::text) THEN 2 ELSE 3 END), name Sort Method: top-N heapsort Memory: 35kB Buffers: shared hit=287 -> Bitmap Heap Scan on users (cost=135.66..13007.91 rows=9379 width=805) (actual time=0.194..1.107 rows=277 loops=1) Recheck Cond: ((lower((name)::text) = 'a'::text) OR (lower((username)::text) = 'a'::text) OR ((email)::text = 'a'::text)) Heap Blocks: exact=277 Buffers: shared hit=287 -> BitmapOr (cost=135.66..135.66 rows=9379 width=0) (actual time=0.152..0.152 rows=0 loops=1) Buffers: shared hit=10 -> Bitmap Index Scan on yorick_test_users (cost=0.00..124.75 rows=9377 width=0) (actual time=0.101..0.101 rows=277 loops=1) Index Cond: (lower((name)::text) = 'a'::text) Buffers: shared hit=4 -> Bitmap Index Scan on index_on_users_lower_username (cost=0.00..1.94 rows=1 width=0) (actual time=0.035..0.035 rows=1 loops=1) Index Cond: (lower((username)::text) = 'a'::text) Buffers: shared hit=3 -> Bitmap Index Scan on users_email_key (cost=0.00..1.94 rows=1 width=0) (actual time=0.014..0.014 rows=0 loops=1) Index Cond: ((email)::text = 'a'::text) Buffers: shared hit=3 Planning time: 0.303 ms Execution time: 1.687 ms Here we can see the new query is 25 times faster compared to the old query.
2018-02-22Merge branch 'master' into 'backstage/gb/build-stages-catch-up-migration'Grzegorz Bizon
# Conflicts: # db/schema.rb
2018-02-21Create index on id instead of stage_id in migrationGrzegorz Bizon
2018-02-20Simplify down migration.Andreas Brandl
2018-02-20Separate adding and removing index from stages migrationGrzegorz Bizon
2018-02-20Add index before going through builds in a migrationGrzegorz Bizon
2018-02-20Add partial index on projects for index-only scans.Andreas Brandl
This helps with queries that get project ids based on the - comparably rare - visibility levels 10 and 20. For these, postgres can now leverage the partial index for a index-only scan to improve performance. Example queries: SELECT id FROM projects WHERE visibility_level IN (10,20) SELECT id FROM projects WHERE visibility_level IN (10) For MySQL, this results in a full index on id because MySQL omits the WHERE clause. That is, the index is a duplicate of the primary key basically.
2018-02-20Refactor ingress IP address waiting code (#42643)Dylan Griffith
2018-02-19[ci skip] Merge branch 'master' into ↵Filipa Lacerda
42643-persist-external-ip-of-ingress-controller-gke * master: (114 commits) Fix Error 500 when viewing a commit with a GPG signature in Geo Remember assignee when moving an issue Add changelog entry Allow oxford commas and spaces before commas in MR issue closing pattern. Don't cache a nil repository root ref to prevent caching issues Add back database changes for Ci::Build Revert "Merge branch 'expired-ci-artifacts' into 'master'" Fix order dependencies in some specs migrate admin:users:* to static bundle correct for missing break statement in dispatcher.js alias create and update actions to new and edit migrate projects:merge_requests:edit to static bundle migrate projects:merge_requests:creations:diffs to static bundle migrate projects:merge_requests:creations:new to static bundle migrate projects:issues:new and projects:issues:edit to static bundle migrate projects:branches:index to static bundle migrate projects:branches:new to static bundle migrate projects:compare:show to static bundle migrate projects:environments:metrics to static bundle migrate projects:milestones:* and groups:milestones:* to static bundle ...
2018-02-16Use a helper to schedule pipeline stages migrationGrzegorz Bizon
2018-02-15Merge branch 'master' into 'backstage/gb/build-stages-catch-up-migration'Grzegorz Bizon
Conflicts: db/schema.rb
2018-02-15Recover from unique constraint violation in stages migrationGrzegorz Bizon
2018-02-15Persist external IP of ingress controller created for GKE (#42643)Dylan Griffith
2018-02-15Remove root user 100 project limit to rely on default 100,000Eric Eastwood
See https://gitlab.com/gitlab-org/gitlab-ce/issues/43271
2018-02-14Merge branch 'expired-ci-artifacts' into 'master'Grzegorz Bizon
Change SQL for expired artifacts to use new ci_job_artifacts.expire_at See merge request gitlab-org/gitlab-ce!16578
2018-02-13Schedule pipeline stages migration every 5 minutesGrzegorz Bizon
[ci skip]
2018-02-13Merge branch 'mk-fix-no-untracked-upload-files-error' into 'master'Douwe Maan
Resolve "PrepareUntrackedUploads PostgreSQL syntax error" Closes #42881 See merge request gitlab-org/gitlab-ce!17019
2018-02-12Schedule PopulateUntrackedUploads if neededMichael Kozono
To finish migrating untracked files to uploads for installations that were affected by https://gitlab.com/gitlab-org/gitlab-ce/issues/42881 Or just to delete the temp table if it is empty and left behind.
2018-02-12Fix a transient failure in ↵Rémy Coutable
db/post_migrate/20170717111152_cleanup_move_system_upload_folder_symlink.rb where symlink already exists Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-12Move pipeline stages background migration in timeGrzegorz Bizon
2018-02-09Merge branch 'master' into backstage/gb/build-stages-catch-up-migrationGrzegorz Bizon
* master: (1480 commits) Conflicts: db/schema.rb