File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -343,18 +343,23 @@ def USE_PROMOS(self): # noqa
343
343
ES_INDEXES = {
344
344
'project' : {
345
345
'name' : 'project_index' ,
346
- 'settings' : {'number_of_shards' : 5 ,
346
+ 'settings' : {'number_of_shards' : 1 ,
347
347
'number_of_replicas' : 1
348
348
}
349
349
},
350
350
'page' : {
351
351
'name' : 'page_index' ,
352
352
'settings' : {
353
- 'number_of_shards' : 5 ,
354
- 'number_of_replicas' : 1 ,
353
+ 'number_of_shards' : 3 ,
354
+ 'number_of_replicas' : 3 ,
355
+ "index" : {
356
+ "sort.field" : ["project" , "version" ]
357
+ }
355
358
}
356
359
},
357
360
}
361
+ # Disable auto refresh for increasing index performance
362
+ ELASTICSEARCH_DSL_AUTO_REFRESH = False
358
363
359
364
ALLOWED_HOSTS = ['*' ]
360
365
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class CommunityTestSettings(CommunityDevSettings):
18
18
TEMPLATE_DEBUG = False
19
19
ES_PAGE_IGNORE_SIGNALS = False
20
20
ELASTICSEARCH_DSL_AUTOSYNC = False
21
+ ELASTICSEARCH_DSL_AUTO_REFRESH = False
21
22
22
23
@property
23
24
def ES_INDEXES (self ): # noqa - avoid pep8 N802
You can’t perform that action at this time.
0 commit comments