Merge pull request #543 from omnivore-app/fix/elastic-migration

Tune the update speed
This commit is contained in:
Hongbo Wu 2022-05-05 11:00:55 +08:00 committed by GitHub
commit a9a792c006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',