tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
773 stars 31 forks source link

`lazyByCursor` not eager loading relations #95

Closed simon-tma closed 2 months ago

simon-tma commented 3 months 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 3 months ago

I‘ll look into it.

tpetry commented 2 months ago

Fixed with release 1.1.0