0
votes

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?

1

1 Answers

1
votes

I don't think the NodeJS API use distinct by default, though you should be able to do a simple test to confirm. Looking through the examples tells me that NodeJS API uses a slightly different terminology, and calls it groupBy for fetching distinct results. Here is the link to the API Documentation.