Support fetch_page
for post-filters
#270
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
In investigating #254, I found another edge case with
fetch_page
, similar to #247.The one use case for post-filters, currently, is querying repeated structured properties. For the reason this requires post-filtering, see the documentation for query.RepeatedStructuredPropertyPredicate.
Because we are filtering results from Datastore, we don't actually know how many usable results we'll get for any given Datastore query with
limit
andoffset
, so some iterating will be required to get enough results to fill a page. We should be able to use the cursors from Datastore, since unlike with Multiquery, there's still only one Datastore query in play. While less efficient than doing this for queries that don't have post-filters, this should be doable.The text was updated successfully, but these errors were encountered: