<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/db, branch update-csslab-version</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Add partial indexes on todos to handle users with many todos</title>
<updated>2018-03-09T16:56:58+00:00</updated>
<author>
<name>Greg Stark</name>
<email>stark@gitlab.com</email>
</author>
<published>2018-03-09T16:56:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e88fa6cfa2ec9bd17586d3958fd0bbfdfaaa19d6'/>
<id>e88fa6cfa2ec9bd17586d3958fd0bbfdfaaa19d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jprovazn-commits-count-reschedule' into 'master'</title>
<updated>2018-03-09T12:57:06+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2018-03-09T12:57:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=cd7fcfd5779716c302608ce462996809f952ceec'/>
<id>cd7fcfd5779716c302608ce462996809f952ceec</id>
<content type='text'>
Reschedule commits_count background migration

See merge request gitlab-org/gitlab-ce!17599</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reschedule commits_count background migration

See merge request gitlab-org/gitlab-ce!17599</pre>
</div>
</content>
</entry>
<entry>
<title>Reschedule commits_count background migration</title>
<updated>2018-03-09T08:56:49+00:00</updated>
<author>
<name>Jan Provaznik</name>
<email>jprovaznik@gitlab.com</email>
</author>
<published>2018-03-07T12:52:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7b22381603d4f2cddc87b1b70e5be076df63cf01'/>
<id>7b22381603d4f2cddc87b1b70e5be076df63cf01</id>
<content type='text'>
We still have &gt;100K unmigrated MergeRequestDiffs
which don't have commits_count set yet (see
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17567#note_61904891)

This migration re-schedules the original background migration.
To assure that records are not processed twice, records with
commits_count set are skipped.

Related to #41698 and !17567
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We still have &gt;100K unmigrated MergeRequestDiffs
which don't have commits_count set yet (see
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17567#note_61904891)

This migration re-schedules the original background migration.
To assure that records are not processed twice, records with
commits_count set are skipped.

Related to #41698 and !17567
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix index name to Rails default to ensure idempotency</title>
<updated>2018-03-08T19:36:41+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2018-03-08T19:36:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=43957e7a8189dc23e5a1ad66a1a85255d65ed72c'/>
<id>43957e7a8189dc23e5a1ad66a1a85255d65ed72c</id>
<content type='text'>
See https://gitlab.com/gitlab-com/infrastructure/issues/3822
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See https://gitlab.com/gitlab-com/infrastructure/issues/3822
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jprovazn-revert-commit-cleanup' into 'master'</title>
<updated>2018-03-08T13:07:36+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@mcgivern.me.uk</email>
</author>
<published>2018-03-08T13:07:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=fcda1e96e8955f448411830962026ee0f9285b11'/>
<id>fcda1e96e8955f448411830962026ee0f9285b11</id>
<content type='text'>
Revert "Cleanup after adding MR diff's commit_count"

See merge request gitlab-org/gitlab-ce!17639</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Revert "Cleanup after adding MR diff's commit_count"

See merge request gitlab-org/gitlab-ce!17639</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '43802-ensure-foreign-keys-on-clusters-applications' into 'master'</title>
<updated>2018-03-08T13:00:37+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2018-03-08T13:00:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=f9dfe343927381cffc882cf25cbc6f42708834ee'/>
<id>f9dfe343927381cffc882cf25cbc6f42708834ee</id>
<content type='text'>
Resolve "Add missing foreign key constraint in clusters_applications_ingress"

Closes #43802

See merge request gitlab-org/gitlab-ce!17488</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolve "Add missing foreign key constraint in clusters_applications_ingress"

Closes #43802

See merge request gitlab-org/gitlab-ce!17488</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sh-add-missing-acts-as-taggable-indices' into 'master'</title>
<updated>2018-03-08T12:54:57+00:00</updated>
<author>
<name>Yorick Peterse</name>
<email>yorickpeterse@gmail.com</email>
</author>
<published>2018-03-08T12:54:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a284400099af145fe63c6a00609ea59f768d383c'/>
<id>a284400099af145fe63c6a00609ea59f768d383c</id>
<content type='text'>
Adding missing indexes migrations from taggings table

Closes #43927

See merge request gitlab-org/gitlab-ce!17563</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding missing indexes migrations from taggings table

Closes #43927

See merge request gitlab-org/gitlab-ce!17563</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Cleanup after adding MR diff's commit_count"</title>
<updated>2018-03-08T11:43:14+00:00</updated>
<author>
<name>Jan Provaznik</name>
<email>jprovaznik@gitlab.com</email>
</author>
<published>2018-03-08T11:43:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7db225e480e78948a1fc70517b4c8ab6ac1aeaf5'/>
<id>7db225e480e78948a1fc70517b4c8ab6ac1aeaf5</id>
<content type='text'>
This reverts commit 0b7d10851456018328da137beeca931767b4fd0a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 0b7d10851456018328da137beeca931767b4fd0a.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add index on section_name_id on ci_build_trace_sections table</title>
<updated>2018-03-08T08:25:15+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2018-03-08T05:35:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a5e3cd7f516bf9d3584eb35bf154854f97cddbeb'/>
<id>a5e3cd7f516bf9d3584eb35bf154854f97cddbeb</id>
<content type='text'>
This was causing user deletions to time out.

Closes #44008
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was causing user deletions to time out.

Closes #44008
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding missing indexes on taggings table</title>
<updated>2018-03-08T05:39:20+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2018-03-06T21:30:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=609a434c6dc2c6d4aafb359348c129fc01d264e3'/>
<id>609a434c6dc2c6d4aafb359348c129fc01d264e3</id>
<content type='text'>
API requests were timing out because `tag_id` was missing an index. These
migrations were imported by running https://github.com/mbleigh/acts-as-taggable-on#post-installation:

```
bundle exec rake acts_as_taggable_on_engine:install:migrations
```

It looks like the `acts-as-tagglable` gem added the indexes in v4.0.0, but
when we upgraded from v3.5.0 (back in 2016 via
f571aeb5ce38dce1a9e5f58d76360836d4a8f8a0) we did not add them.

On staging, there are about 10.7 million rows on the `taggings` table. It took about 30 seconds for each index to be created.

On production, there are about 17.4 million rows, so I suspect the time to be about a minute per index.

Closes #43927
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
API requests were timing out because `tag_id` was missing an index. These
migrations were imported by running https://github.com/mbleigh/acts-as-taggable-on#post-installation:

```
bundle exec rake acts_as_taggable_on_engine:install:migrations
```

It looks like the `acts-as-tagglable` gem added the indexes in v4.0.0, but
when we upgraded from v3.5.0 (back in 2016 via
f571aeb5ce38dce1a9e5f58d76360836d4a8f8a0) we did not add them.

On staging, there are about 10.7 million rows on the `taggings` table. It took about 30 seconds for each index to be created.

On production, there are about 17.4 million rows, so I suspect the time to be about a minute per index.

Closes #43927
</pre>
</div>
</content>
</entry>
</feed>
