I've started using N1ql and I have been following the N1ql tutorials from Couchbase.
I have noticed many times that a given document (let's say User) contains an array with the ids of other documents (let's say orders), from which we can later on perform a join. Is this solution suitable for a situation where a user might have thousands of references?
If not, what is the alternative? What would be the correct approach to find all users and their orders (where some users may not have orders)?