Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b9b33ee1
Commit
b9b33ee1
authored
Jun 02, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index for description in ci_runners table
Changelog: added
parent
267ce448
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
db/migrate/20210602122233_add_runners_description_index.rb
db/migrate/20210602122233_add_runners_description_index.rb
+17
-0
db/schema_migrations/20210602122233
db/schema_migrations/20210602122233
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20210602122233_add_runners_description_index.rb
0 → 100644
View file @
b9b33ee1
# frozen_string_literal: true
class
AddRunnersDescriptionIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
INDEX_NAME
=
'index_ci_runners_on_description_trigram'
disable_ddl_transaction!
def
up
add_concurrent_index
:ci_runners
,
:description
,
name:
INDEX_NAME
,
using: :gin
,
opclass:
{
description: :gin_trgm_ops
}
end
def
down
remove_concurrent_index_by_name
:ci_runners
,
INDEX_NAME
end
end
db/schema_migrations/20210602122233
0 → 100644
View file @
b9b33ee1
96c70de2567fc3e816c720ed6e4cef2446c0f0ee288d0959cd1298523913077f
\ No newline at end of file
db/structure.sql
View file @
b9b33ee1
...
...
@@ -22921,6 +22921,8 @@ CREATE INDEX index_ci_runner_projects_on_runner_id ON ci_runner_projects USING b
CREATE INDEX index_ci_runners_on_contacted_at ON ci_runners USING btree (contacted_at);
CREATE INDEX index_ci_runners_on_description_trigram ON ci_runners USING gin (description gin_trgm_ops);
CREATE INDEX index_ci_runners_on_locked ON ci_runners USING btree (locked);
CREATE INDEX index_ci_runners_on_runner_type ON ci_runners USING btree (runner_type);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment