Deep queries with limited sorting and filtering functionality:
- You can only sort or filter on a property, not sort and filter on a property, in a single query.
- Queries are deep by default. They always return the entire subtree.
|
Indexed queries with compound sorting and filtering:
- You can chain filters and combine filtering and sort on a property in a single query.
- Write shallow queries for sub collections; you can query subcollections within a document instead of an entire collection, or even an entire document.
- Queries are indexed by default. Query performance is proportional to the size of your result set, not your dataset. ...
|