increase news shard number

This commit is contained in:
Kuroshini 2020-01-22 20:10:06 +03:00
parent 8083c83df1
commit b7fa52a2ab

View File

@ -7,7 +7,7 @@ from json import dumps
NewsIndex = Index(settings.ELASTICSEARCH_INDEX_NAMES.get(__name__, 'news'))
NewsIndex.settings(number_of_shards=1, number_of_replicas=1)
NewsIndex.settings(number_of_shards=10, number_of_replicas=1)
@NewsIndex.doc_type