mikewilliams
PPrisma
•Created by mikewilliams on 5/13/2024 in #help-and-questions
Bypass accelerate for certain queries to avoid 5MB limit
We have a reporting page that runs 20 or so queries from the db.
We want to use accelerate, but 1-2 of the queries exceed 5MB (Not really a way around it).
Is there a way, just for these queries, to tell it to just hit the database directly?
I suppose I could spin up a separate prisma client and use datasourceUrl to override it. I don't know if that's an optimal solution, if there are issues with that I'm not considering, or if maybe there's something more elegant.
6 replies