Sequelize Pagination: Limit and Distinct behavior during Eager Loading
When implementing pagination in Sequelize (v6+), the limit and offset options are used to control the result set size. However, a specific complexity arises when utilizing include for one-to-many associations alongside these pagination constraints. To prevent the joined result set from inflating the row count, Sequelize often generates a subquery. When multi