Prisma
p/prisma-data
The future of serverless databases.
Chris Messina

Prisma Optimize — AI-driven query analysis

Featured
18
Prisma Optimize is a tool which integrates directly into your existing Prisma ORM client, measures the performance of database queries, and then shows you how to optimize with actionable tips, and an AI assistant to help you implement them.
Replies
Best
Søren Bramer Schmidt
Hey Product Hunters! For the past 7 years, we at Prisma have been working hard to support the maker community in building amazing apps, by removing the complexity of databases, allowing you to focus on your own mission. One thing we have heard for a long time is that it’s still really hard to debug and improve performance. It’s difficult to know what the problem is — let alone how to fix it! So we set out to solve this. Prisma Optimize is a really neat tool that integrates directly into your existing Prisma ORM client, measures the performance of individual database queries, and then shows everything in an easy-to-understand dashboard. It will give you specific recommendations on what to change, and an AI assistant to answer follow-up questions and review code before you implement it. With Optimize, we wanted to go a step further in helping developers build great products — not only do we take away the complexities of managing databases, but now we can help you solve performance challenges too. Want to try it out? It’s free to start! Let us know how you go with it — did it help? How was your experience? What can we help you with next?
Chris Messina
Top Hunter
Hunter
Slow and inefficient queries leads to poor app performance and excessive (and unnecessary) costs. Prisma Optimize peeks inside your database to see which queries can be sped up and uses AI to rewrite them. There's more on offer — but if you have a complex database backend that could run faster, you need to check out Prisma Optimize!
Owen Richards
Very cool! Looking forward to trying this. Does it also analyse raw queries or MongoDB aggregations to offer better ways to query the data natively (i.e. use include to join data instead of a Lookup aggregation)?
Shane Neubauer
@owenthetwit Hey Owen, just checked with the team -- for raw queries it does provide metrics, but does not offer recommendations. Worth noting that the recommendations that Optimize currently delivers are focused on relational database. We have much more stuff coming up with Optimize though, with new recommendations coming soon etc. Thanks for your feedback and question!
Marc Mengler
query optimization is a topic hidden deep in everyones' passive knowledge. we've all spent too much time on it. I am glad Optimize will eventually save us the pain of going through these dark memories. thousands of mirror neurons thank you for it, @sorenbs & @nikolasburk :)
Samuel Bissegger
Congratulations on your product @sorenbs! Prisma Optimize tackles an angle that I know from my experience has a massive impact on UX creation and improvement. I wish you and the team a lot of success🥳
Gabor Kriston
Sometimes understanding why a query is slow is one thing, but knowing how to fix it efficiently is another.
Shane Neubauer
@gabor_kriston Completely agree! That's why Optimize helps you with both 🤝
Matija Sosic
A big fan of Prisma (so big I made a framework on top of it hehe) - super excited for this launch!
Shane Neubauer
@matijash That's awesome! I'll share with the team, they'll be excited to hear 😃
Petra Donka
Very excited about Optimize allowing anyone to improve query performance 💯 Would've loved to have a tool like this when I last worked with a database in a project to tell me what and how to do to make those queries faster. And now, we have Optimize. Go try it out, and make your app even better and faster!
Shane Neubauer
@petradonka Same here! Would have saved me a ton of time in my past projects
Marco Wettstein
this is a fantastic idea. i have one remark: We had some troubles with inefficient mongodb calls. The problem was that was an issue in prisma itself, which eventually got fixed after raising some awareness in the issue tracker. I think its therefore important that prisma optimize reports back issues it can't solve, or patterns that are used often and aren't really optimized in prisma.
Shane Neubauer
@marco_wettstein_panter Hey Marco! thanks for this feedback! I've captured your comments and shared internally so that the rest of the team sees it as well 🤝
Igal Klebanov
Really excited about this one! In the Database and TypeScript worlds, there are many ways to solve a problem, to build that feature you want to ship, but rarely do the tools help you understand how to use them better while using them, or warn you when you're doing something not optimal or wrong. As tool makers, we try to step away and not be too opinionated in our designs, to fit a broader range of use cases. Sure, the docs might talk about best practices, or common issues, but it is always on the builder to find these pieces of information, and to put 2 and 2 together and apply the learnings to their own solution. This is not trivial, especially if you're not in the top 10-20% of backend developers. Even if you are the most brilliant developer out there, your team's codebase can get so large and the velocity can be so high, that introducing new mistakes/suboptimal usage of tools are inevitable.
Nitin Gupta
Excited to get this into the hands of our users!
Adekemi Faronbi
More time coding, less time fixing queries this is all about speeding up dev work!
Luana
congrats on the launch!! looks like a great tool for developers!