Indeed, it is all about the numbers. So, Danesh, what are your numbers -
number of tenants and number of documents per tenant. What is the expected
distribution curve of documents per tenant?
The only "limit" I would suggest is that you not have more than "low
hundreds" of cores/tenants.
Will ten
One possibility is to have separate core for each tenant domain.
You could do that, and it's probably the way to go if you have a lot of
data.
However, if you don't have much data, you can achieve multi-tenancy by
adding a filter to all your queries, for instance:
query = userQuery
filterQ