Replies: 1 comment 3 replies
-
When a list of references is fetched, it's a multi-step process:
So there's a little bit of work to process them all but the number of queries is minimized as much as possible. Hope this helps. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have an collection with an list of embedded doc with a reference to another collection.
e.g. Collection A with a list called list1, holding embedded doc with a reference to collection B (b_id), like below:
It is defined with @reference(lazy = true) which is fine for most of the time when i don't need the data in collection B. But when I need the data in collection B, it will query 1 by 1. when there are list of 100 entry in list1, there will be 100 query. Are there any way to group the 100 query into 1?
Thanks.
Regards
Beta Was this translation helpful? Give feedback.
All reactions