Question about compound keys

Hey @kchan4,

You might see the following for (3):

Ignore the fact that I linked you to a Node.js solution, as the core point (range queries) works across the other SDKs too.

The best solution for you would be to use a range query to get all documents prefixed with a certain value. You probably shouldn’t emit the whole document because it could become taxing depending on the document size and how many documents you have. Instead you should take the ID from each result of the range query and then grab the document in a separate request.

How does that sound?

Best,

1 Like