This seems straightforward, but if `large_table` doesn't have enough rows beyond the offset (e.g., fewer than 100 rows after row 1000), the query might not return an ...
Currently, the ORM generates the following SQL for a simple paginated query: SELECT anon_1.masterdata_product_id, anon_1.masterdata_product_country_id FROM ( SELECT ...