Join Slack
Powered by
Prisma 1 user here :disappointed: How Prisma 1 dea...
# orm-help
j
Jaafari El Housseine
12/18/2020, 7:01 AM
Prisma 1 user here 😞 How Prisma 1 deals with pagination using MySQL? Where can I see the generated query?
d
divyendu
12/18/2020, 11:38 AM
Let me see if there is a way to do this from Prisma 1's side but you can always log queries from the MySQL side
https://dba.stackexchange.com/a/62476/101723
j
Jaafari El Housseine
12/22/2020, 10:44 AM
Well, i did try this before and Prisma doesn’t log queries to mysql.
d
divyendu
12/22/2020, 11:17 AM
This should work, when MySQL executes a query it logs it, Prisma can't tell it to not log queries. It is a MySQL feature
j
Jaafari El Housseine
12/22/2020, 11:21 AM
I don’t remember exactly where I read this, but I tested myself and when I execute a normal query it does log, otherwise Prisma queries never logs
d
divyendu
12/22/2020, 11:24 AM
Interesting, if you can make a small reproduction setup that I can try, I am happy to look into this
3
Views
Open in Slack
Previous
Next