News for hackers. Stuff that matters.
Re:From Node to Ruby on Rails by saila on Saturday December 18, 2021 @12:40AM (#29602012)
prefetch_related and select_related are pretty straightforward, but for more complex stuff the Django ORM can be a hindrance.

I haven’t checked out Prisma. Thanks for the tip.

Re:From Node to Ruby on Rails by crucialfelix on Saturday December 18, 2021 @02:14PM (#29607569)
Sure, I always have to spend time checking logs and tuning the queries like that. By default, Django selects everything. I used to discover that joins and prefetches were hauling in large text fields when I only wanted an id or a slug.

Prisma has a great API for this, and it's easy to tune. By default is prefetches and selects related even several levels of joins deep.