Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: useFetch vs prismaClient #6851

Open
gregpalaci opened this issue Oct 16, 2024 · 0 comments
Open

Question: useFetch vs prismaClient #6851

gregpalaci opened this issue Oct 16, 2024 · 0 comments

Comments

@gregpalaci
Copy link

Would be nice to have a comparison of trade offs and best practises of either using the PrismaClient or Nuxt useFetch.

Seems most documation reccomends prismaClient but there are some nice things you get by using useFetch like automatic caching.

https://github.com/prisma/prisma-examples/tree/latest/typescript/rest-nuxtjs

If I do my own "fetching" though I'm losing the db connection pool performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant