You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the LIMIT is already applied inside pgrst_source_count for regular requests. In my case I am requesting from an RPC, and it seems db-max-rows is not applied at all.
Alternatively, just a new config option db-max-count, which defaults to db-max-rows, but allows us to set the max count limit without enforcing a max-rows limit in general.
steve-chavez
added
enhancement
a feature, ready for implementation
and removed
idea
Needs of discussion to become an enhancement, not ready for implementation
labels
Jul 15, 2024
Currently to use
count=estimated
we'll need to usedb-max-rows
. Butdb-max-rows
applies to all requests, which is pointless.I want to be able to:
count=estimated
for a much lower limit, when I paginate through the resultset.Maybe we can introduce an option to pass the "estimation limit" to the prefer header directly?
Something like
Prefer: count=estimated(1000)
, which would apply theLIMIT 1000
only inside thepgrst_source_count
CTE:The text was updated successfully, but these errors were encountered: