Sting Alleman
07/07/2021, 9:20 PMjanpio
Prisma runs an unnecessary number of queriesPrisma returns the data you ask for. Sometimes that would be possible with a query or two less, but mostly it does not impact performance. If it does, this will be fixed sooner or later (if someone tells us about it).
it doesn't multiple DB connectionsPrisma uses a collection pool that you can configure any way you want - so 1 Prisma Client can open x connections to the database. What does not work yet, is that you can define the schema of multiple different databases in one Prisma Schema, but you can just use multiple Prisma Clients (each with its own schema) to do that. What really does not work is to query across multiple databases at the same time - but that is a very common limitation as it is a super uncommon use case.
will things like DB pagination be supported in the futureI am not sure what you mean, normal database side pagination is of course supported right now: https://www.prisma.io/docs/concepts/components/prisma-client/pagination
Dominic Hadfield
07/08/2021, 7:22 AM