3 comments

  • satvikpendem431 days ago
    Moving from Rust to TypeScript? Didn't they move from TypeScript to Rust in the first place due to performance issues, that they still haven't fully ameliorated even with Rust?
    • steveklabnik431 days ago
      My recollection was that the old Prisma was in Scala, not TypeScript.
  • pier25431 days ago
    If Prisma had focused on a single database (probably Postgres) or a single paradigm (probably SQL) it would have been a better product.<p>They have to abstract multiple db paradigms into an API that works for many use cases but doesn&#x27;t get you all the way there. Eg: Last time I checked they didn&#x27;t support listen&#x2F;notify on Postgres.<p>Also overall performance has been lacking which I suspect is also a symptom of trying to support too many dbs. They recently released v6 and made claims of performance improvements but afaik offer no data to back up these claims [1]. It&#x27;s all very &quot;trust me bro it&#x27;s faster&quot;.<p>Drizzle still hasn&#x27;t reached 1.0 but they created a much better ORM in a fraction of the time (and probably budget).<p>[1] <a href="https:&#x2F;&#x2F;www.prisma.io&#x2F;blog&#x2F;prisma-6-better-performance-more-flexibility-and-type-safe-sql" rel="nofollow">https:&#x2F;&#x2F;www.prisma.io&#x2F;blog&#x2F;prisma-6-better-performance-more-...</a>
    • gniting431 days ago
      Focusing on a single db was not the original intent as migrations was a big reason why the ORM product category became (and still remains) popular.<p>As for performance, you are right. We do take a hit when trying to support as many DBs as possible. However, performance is not an issue. Take a look at <a href="https:&#x2F;&#x2F;benchmarks.prisma.io" rel="nofollow">https:&#x2F;&#x2F;benchmarks.prisma.io</a>. Regardless, we&#x27;re always open to being given examples whereby we can dig into performance related issues. So if you have any, please send them our way.
      • pier25431 days ago
        I&#x27;m surprised about what you say regarding migrations. Personally I don&#x27;t know any dev that uses automatic migrations even with extremely mature ORMs like Entity Framework.<p>&gt; <i>performance is not an issue</i><p>No offense but I gotta say, those benchmarks look a bit off.<p>To begin with, why are you only comparing vs other ORMs instead of adding a baseline of handwritten SQL code?<p>Second, it&#x27;s not clear how big the data set is. In the repo it seems the default size is 50 rows. Is that what you used for the results in the website?<p>Third, how can Drizzle take 1300ms to do such a lightweight query with a single join? Something is obviously wrong here considering Drizzle creates a single SQL query. Did you prepare the statements? Are you even using the latest version?<p>On top of that... it seems Prisma is taking +50ms to do a single join on two tables with 50 rows which means it would execute 20 queries per second. Not exactly performant.
        • satvikpendem429 days ago
          We use Prisma in part due to its migration support, I want it to Just Work™ and not have to deal with writing manual migrations every time, it&#x27;s a common feature request of many ORMs if they don&#x27;t have it.