Tuesday, 6 June 2017

Does the Datastore API for NodeJS use `distinct on` by default?

https://cloud.google.com/datastore/docs/concepts/queries#datastore-distinct-on-query-nodejs

When reading the documentation about querying entities, I noticed that keys-only queries and projection queries without a distinct on clause are considered small operations, which according to their quota and pricing are considered free.

However, when you look at the examples from different languages on that page, it looks like several (C#, Java, PHP, etc...) support a way of telling the query to specifically perform a distinct on operation, but there doesn't seem to be support in NodeJS for specifying this directly. This seems to significantly impact cost, but NodeJS is missing support.

What am I missing?



via AverageJoe

No comments:

Post a Comment