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
29367e67
Commit
29367e67
authored
Mar 06, 2020
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use less expensive index_options
parent
7974883f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
+27
-22
changelogs/unreleased/28085-index-options-tuning.yml
changelogs/unreleased/28085-index-options-tuning.yml
+5
-0
ee/lib/elastic/latest/config.rb
ee/lib/elastic/latest/config.rb
+22
-22
No files found.
changelogs/unreleased/28085-index-options-tuning.yml
0 → 100644
View file @
29367e67
---
title
:
Optimize storage usage for newly created ES indices
merge_request
:
25992
author
:
type
:
other
ee/lib/elastic/latest/config.rb
View file @
29367e67
...
...
@@ -122,9 +122,9 @@ module Elastic
indexes
:iid
,
type: :integer
indexes
:title
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:description
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
position
s'
indexes
:state
,
type: :text
indexes
:project_id
,
type: :integer
indexes
:author_id
,
type: :integer
...
...
@@ -144,16 +144,16 @@ module Elastic
### MERGE REQUESTS
indexes
:target_branch
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:source_branch
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:merge_status
,
type: :text
indexes
:source_project_id
,
type: :integer
indexes
:target_project_id
,
type: :integer
### NOTES
indexes
:note
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
position
s'
indexes
:issue
do
indexes
:assignee_id
,
type: :integer
...
...
@@ -168,14 +168,14 @@ module Elastic
### PROJECTS
indexes
:name
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:path
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:name_with_namespace
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :my_ngram_analyzer
indexes
:path_with_namespace
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
position
s'
indexes
:namespace_id
,
type: :integer
indexes
:archived
,
type: :boolean
...
...
@@ -190,23 +190,23 @@ module Elastic
### SNIPPETS
indexes
:file_name
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
doc
s'
indexes
:content
,
type: :text
,
index_options:
'
offset
s'
index_options:
'
position
s'
### REPOSITORIES
indexes
:blob
do
indexes
:type
,
type: :keyword
indexes
:id
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :sha_analyzer
indexes
:rid
,
type: :keyword
indexes
:oid
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :sha_analyzer
indexes
:commit_sha
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :sha_analyzer
indexes
:path
,
type: :text
,
analyzer: :path_analyzer
...
...
@@ -214,7 +214,7 @@ module Elastic
analyzer: :code_analyzer
,
search_analyzer: :code_search_analyzer
indexes
:content
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
position
s'
,
analyzer: :code_analyzer
,
search_analyzer: :code_search_analyzer
indexes
:language
,
type: :keyword
...
...
@@ -224,26 +224,26 @@ module Elastic
indexes
:type
,
type: :keyword
indexes
:id
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :sha_analyzer
indexes
:rid
,
type: :keyword
indexes
:sha
,
type: :text
,
index_options:
'
offset
s'
,
index_options:
'
doc
s'
,
analyzer: :sha_analyzer
indexes
:author
do
indexes
:name
,
type: :text
,
index_options:
'
offset
s'
indexes
:email
,
type: :text
,
index_options:
'
offset
s'
indexes
:name
,
type: :text
,
index_options:
'
doc
s'
indexes
:email
,
type: :text
,
index_options:
'
doc
s'
indexes
:time
,
type: :date
,
format: :basic_date_time_no_millis
end
indexes
:committer
do
indexes
:name
,
type: :text
,
index_options:
'
offset
s'
indexes
:email
,
type: :text
,
index_options:
'
offset
s'
indexes
:name
,
type: :text
,
index_options:
'
doc
s'
indexes
:email
,
type: :text
,
index_options:
'
doc
s'
indexes
:time
,
type: :date
,
format: :basic_date_time_no_millis
end
indexes
:message
,
type: :text
,
index_options:
'
offset
s'
indexes
:message
,
type: :text
,
index_options:
'
position
s'
end
end
end
...
...
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