mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #543 from omnivore-app/fix/elastic-migration
Tune the update speed
This commit is contained in:
commit
a9a792c006
1 changed files with 4 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ log('Starting adding default state to pages in elasticsearch...')
|
|||
esClient
|
||||
.update_by_query({
|
||||
index: INDEX_ALIAS,
|
||||
requests_per_second: 10,
|
||||
scroll: '30s',
|
||||
scroll_size: 1000,
|
||||
timeout: '30m',
|
||||
body: {
|
||||
script: {
|
||||
source: 'ctx._source.state = params.state',
|
||||
|
|
|
|||
Loading…
Reference in a new issue