Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have put performance counters to evaluate where the huge performance degradation of the search is coming from. To put it into context:
After putting performance counters pretty much everywhere, the problem was located in the Journey queries. I believe simply the ORM builds too big / slow of a queries after the latest changes and the environment can barely handle them. It took ~30 seconds (+-5) for each of
searchSpacesByTerms
,searchChallengesByTerms
,searchOpportunitiesByTerms
.I have tried the following:
.leftJoinAndSelect
- helped marginally.leftJoinAndSelect
with.leftJon
andSelect
separately - almost didn't help at allI have optimized the performance an order of magnitude, but the starting point is really suboptimal. Getting from ~90 to 8-10 sounds great only in theory - it's still too slow, but I am not sure what can be done with our technology choices in short space of time.
@techsmyth - this needs a discussion asap.