Elastic: paralellise reindexing

It's marginally faster (on our production DB user reindexing goes down from
5+ minutes to 4 minutes), but will likely become significantly faster when
we run ElasticSearch on its own machine.
This commit is contained in:
2018-01-09 17:05:31 +01:00
parent 408db5e060
commit 1d08f6850b
2 changed files with 62 additions and 26 deletions

View File

@@ -866,3 +866,11 @@ class PillarServer(BlinkerCompatibleEve):
@property
def user_caps(self) -> typing.Mapping[str, typing.FrozenSet[str]]:
return self._user_caps
@property
def real_app(self) -> 'PillarServer':
"""The real application object.
Can be used to obtain the real app object from a LocalProxy.
"""
return self