amazon web services - Dynamo DB batch operations on single table -


i've been going through aws dynamodb docs , cannot figure out what's difference between batchgetitem() , query().

my use case: have table has id primary hash key, , attribute values name , marks. perform batch query returns list of names , marks providing list of id's primary keys.

should use batchgetitem() or query()?

batchgetitem: allows parallelize "getitem" requests languages don't support parallelism (i.e. javascript). includes retrieving items different tables (doesn't support indexes though).

query: allows page through tables hash-range schema (where you'll have multiple results associated hash key) , allows retrieve items indexes on table. note can add additional condition on range key in keyconditions , add conditions on non primary key attribute in queryfilter.

it seems use case calls batchgetitem request, trying retrieve items base table way of hash key.

hope helps!


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -