adf-config icon indicating copy to clipboard operation
adf-config copied to clipboard

Using simple Hash tables with many items

Open sadasant opened this issue 12 years ago • 6 comments

For some people it's better to edit values in a single page, DynamoDB is able to do this, but the previous approach required one item per configuration, meaning one edit page per configuration.

With the following changes, the user is able to edit many configurations in a single page using a simple Hash table (with App as the hash key).

An example is included in the next image:

sadasant avatar Sep 10 '13 23:09 sadasant

Interesting. What is the max number of attributes we can have in an item?

ryansmith3136 avatar Sep 10 '13 23:09 ryansmith3136

It doesn't look like there is a limit on the number of attributes, just a limit on the size of an item. The size limit on an item is 64KB. If we liberally assume an average of 100B per config then we can store 640 config variables per app. This seems like a pretty reasonable limit :)

ryansmith3136 avatar Sep 11 '13 00:09 ryansmith3136

Also, here is the link to the DynamoDB doc where I got the 64KB limit: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html

ryansmith3136 avatar Sep 11 '13 00:09 ryansmith3136

Yep, you're right, thanks for the link!

Also, this approach can be used with a Hash and Range table, so if this feature makes sense, we could provide a notice on the readme with the limit of the size of the items and how to workaround with multiple tables using Hash and Range, what do you think?

sadasant avatar Sep 11 '13 00:09 sadasant

Any reason this hasn't been merged? Looks quite useful.

josegonzalez avatar Dec 04 '14 05:12 josegonzalez