Tune the update speed

This commit is contained in:
Hongbo Wu 2022-05-04 22:44:28 +08:00
parent ba09b4c803
commit cd9c6a40d9

View file

@ -133,6 +133,9 @@ log('Starting adding default state to pages in elasticsearch...')
esClient
.update_by_query({
index: INDEX_ALIAS,
requests_per_second: 10,
scroll: '30s',
scroll_size: 500,
body: {
script: {
source: 'ctx._source.state = params.state',