tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
745 stars 32 forks source link

`lazyByCursor` not eager loading relations #95

Open simon-tma opened 1 month ago

simon-tma commented 1 month ago

The core lazy() and lazyById() methods on an Eloquent builder both support eager-loading of relations. lazyByCursor() is not doing any eager loading, causing N+1 query performance issues.

tpetry commented 1 month ago

I‘ll look into it.