Is it a good idea to store an Object in Amazon Dynamo as Json? -


After looking at Amazon Dynamo DDB, I was trying to figure out how I would store my complex objects I will make in my code and want to stay persisted I understand how I store these objects in relational databases such as MySQL, but how do I store them in DynamoBib?

I can think in a way .... I turned them into Jason and to represent Jason in Dynamo DDB, to get them out of Dynamo DBB, again I used to present my object presentation in my code to Jason Will take back from

Here's an example:

For this type of object: A car is an engine that has many parts, each part has a serial number, a life span and a replacement value. . Now I can change the car to JSON which will look something like this:

  {"engine": {"parts": [{"serial number": "1234", "Vistaspan ": 10," replacement value ": 100}, {" serial number ":" 5678 "," life span ": 1," replacement value ": 200}]}}   

I like the key as Jason Dynamo in the above: Karmanam 'Jaguar', Price [json above]? Or is there a better way to store a car object?

I understand how I will store these items in a relational database like MySQL, But how do I store them in Dynamo DDB?

The mainstream solution for Dynamody is similar to MySql: you are simply a table row (mysql) with a table item (Dynamodb), they are both flat structures, but a dynamometer Items can have different properties in the table from other items, and in this (include columns / attribute names).

Should I just store Jasonson Dynamo as key: the name 'Jaguar', value [json above]? Or is there a better way to store car objects?

You can archive the compressed version of json to reduce, but then you will not be able to use any attribute attribute (for example or) in the dynamometer, and other AWS products Can not easily integrate with.

You can take a look at the way to store those items, soon: a dynamo item for each item. Hash for an array, with N categories for array elements.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -