Re:Show HN: EdgeDB Cloud and 4.0 with FTS and Auth
by mfester on Wednesday November 01, 2023 @01:53PM
(#38102111)
Interesting. Could you share more about the performance characteristics of EdgeDB + TypeScript vs say Prisma + other DB?
[ Parent
| on HN ]
Re:Show HN: EdgeDB Cloud and 4.0 with FTS and Auth
by 1st1 on Wednesday November 01, 2023 @02:00PM
(#38102222)
That's a good question! Prisma (not to single out it, basically any ORM on the market) struggle with composition. What this means is that an innocently looking API call in your ORM can translate into a multitude of actual SQL queries sent to the server one by one. This just balloons the database latency of your backend degrading quality of service everywhere.
EdgeDB's TypeScript query builder gives you the same type safety benefit that Prisma gives you, but its main feature is that it builds EdgeQL for you. And EdgeQL is very, very good for composition and pipelining multiple operations in one single query. You can select multiple unrelated object hierarchies, update / insert them, introspect your schema, all in one query easily.
This is very visible in benchmarks: https://www.edgedb.com/blog/why-orms-are-slow-and-getting-sl...
And we plan to write a post about cloud benchmarks soon to further illustrate this point.
Re:Show HN: EdgeDB Cloud and 4.0 with FTS and Auth
by RedCrowbar on Wednesday November 01, 2023 @01:56PM
(#38102148)
We wrote a blog post about this specifically: https://www.edgedb.com/blog/why-orms-are-slow-and-getting-sl...