Return Zero

Day: October 1, 2024

What’s worse than an N+1: Accidental Cartesian Products

Object-Relational Mapping (ORM) tools are widely used in modern web development for their convenience in database interactions. However, they can sometimes lead to unexpected and severe performance issues. One such issue is the generation of queries that result in cartesian products, potentially returning an enormous number of rows. Understanding the Cartesian Product Problem A cartesian […]

Back to top