DynamoDB: receive all goods

I am trying to get all the keys from a DynamoDB table in an optimized way. There are millions of keys.

In Cassandra, I would probably create one row with a column for each key, which would eliminate the need for a full table scan. The 64k limit for DynamoDBs per element would seem to preclude this option.

Do I have a quick way to return all keys?

Thanks.

+4
source share
1 answer

I believe that the analogue of DynamoDB will consist of using composite keys: have a primary key "allmykeys" and an attribute of the range of traceable originals: http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey

I suspect that it will not scale well to billions of applications, but should work adequately for several million.

Finally, again, as with Cassandra, the easiest solution is to use map / reduce to get the keys: http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/EMRforDynamoDB.html

+2
source

Source: https://habr.com/ru/post/1394290/


All Articles