improve query performance for joins #55
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
right now, any time a "join" happens (
decksWithAuthors
being one such join), the query performance is bad because it doesn't cache results, so if every returned deck has the same author it queries it each time.looks like it needs aggregation pipelines: https://www.mongodb.com/docs/manual/reference/operator/aggregation/lookup/
which might be frustrating, might not: https://mikro-orm.io/docs/3.6/usage-with-mongo
The text was updated successfully, but these errors were encountered: