Anuncios Libros Cursos Categorías

The N+1 Problem in Django's ORM and How to Avoid It

07-02-2026 - Andrés Cruz

The N+1 Problem in Django's ORM and How to Avoid It

Learn what the N+1 problem is in Django, why it occurs with the ORM, how to detect it, and how to optimize queries using select_related and eager loading.


Get random records from database in Laravel with Eloquent

17-01-2026 - Andrés Cruz

Get random records from database in Laravel with Eloquent

Learn how to use the orderByRaw function to get random records from your database, both with a direct relationship and a foreign one.


Optimizing Queries with Eloquent in Laravel

17-01-2026 - Andrés Cruz

Optimizing Queries with Eloquent in Laravel

We will discuss the importance of optimizing queries in Laravel with real-world examples, seeing what works best for us: using with or join.


Filters with conditional clauses, when and whereBetween in Laravel Livewire - Eloquent

16-11-2025 - Andrés Cruz

Filters with conditional clauses, when and whereBetween in Laravel Livewire - Eloquent

We are going to apply the filters defined before using the when and whereBetween, which is the predefined way in Laravel.


Eager loading and lazy loading in Laravel

13-11-2025 - Andrés Cruz

Eager loading and  lazy loading in Laravel

Eager loading and lazy loading are two techniques we have available to retrieve data related to working with Eloquent models. And we have to know them in detail to use techniques that best suit our needs.


Polymorphic relationships in Laravel

13-11-2025 - Andrés Cruz

Polymorphic relationships in Laravel

We will see what polymorphic type relationships are and how to use them in Laravel, including one-to-one, one-to-many, and many-to-many relationships.