@@ -146,48 +147,58 @@ for the changes to take effect.
## Special recommendations
### Indexing huge repositories
Indexing huge git repositories can take a while, to speed up a process you can disable an auto refreshing. In our experience you can expect 20% time drop.
Here are some tips to use Elasticsearch with GitLab more efficiently.
```
# Disable refreshing
curl -XPUT localhost:9200/_settings -d '{
"index" : {
"refresh_interval" : "-1"
} }'
### Indexing large repositories
# Enable refreshing again(after indexing)
curl -XPUT localhost:9200/_settings -d '{
"index" : {
"refresh_interval" : "1s"
} }'
Indexing large Git repositories can take a while. To speed up the process, you
can temporarily disable auto-refreshing. In our experience you can expect a 20%
time drop.
1. Disable refreshing:
# A force merge should be called after enabling the refreshing above