Web app. Get data from services in json & xml formats. And from internal module in hash.
Decided to choose one format for all stored data.
details :
-
More read than write.
-
Data low nested (< 10).
-
Char count between 1000 – 100000.
-
Programming language – ruby.
-
Framework rails.
-
DB mysql.
What’s your recommendation?
For performance reasons, we store large hashes as serialized Ruby objects in Marshal format. You need a column type of Blob. This works really well. JSON would be fine but we found it a little slower to marshal / un-marshal. I’d stay away from XML unless you really need interoperability with a third party/