Open scott97 opened 1 year ago
This is a fundamental restriction of the datastore and unlikely to change anytime soon.
Time queries are of course fine providing the inequality applies to one property, e.g., Timestamp > X and Timestamp < Y.
If we find ourselves needing to do time-based queries AND space-based queries, we should consider adopting a "space-time GeoHash".
When checking if a videostream is within the specified timespan, ideally we would filter out all videostreams that ended before the specified range, and started after the specified range. This involves making a datastore query with two inequality filters on two different properties (our start time and end time). This is forbidden, so we need a work around.
One option is to filter out all videostreams that ended before the specified range with our query, and then on the application side we can filter out all videostreams that started after the specified range.
Current error message
Relevant documentation https://cloud.google.com/datastore/docs/concepts/queries#restrictions_on_queries