Prisma performance questions
Let's say I have this schema:
I want to create a query that gets all the sales orders for a given tenant.
For context, this is a multi-tenant application sharing the same database. Looking at some slowness, I assume this would be better, correct?
Another thing we don't have is indexes on the tenantId fields. I assume this would also help, correct?
What other things could we do to improve the performance of this query?
I want to create a query that gets all the sales orders for a given tenant.
For context, this is a multi-tenant application sharing the same database. Looking at some slowness, I assume this would be better, correct?
Another thing we don't have is indexes on the tenantId fields. I assume this would also help, correct?
What other things could we do to improve the performance of this query?