Web application. Get data from services in json and xml formats . And from the internal module to the hash.
It was decided to choose one format for all saved data.
more details:
Read more than write.
Low nested data (<10).
Char is counted between 1000 - 100000.
The programming language is ruby.
Frame rails.
DB mysql.
What is your recommendation?
Ruby . Blob. . JSON , /-. XML, /
JSON MySQL , . XML , , JavaScript, JSON , .
ActiveModel Rails 3. , , ActiveRecord, . JSON/XML, , , .
JSON XML
API, ActiveModel .
JSON YAJL-ruby - : http://rdoc.info/projects/brianmario/yajl-ruby
Activerecord , .. , attr:
. " , " : http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001799
:
class User < ActiveRecord::Base serialize :preferences end user = User.create(:preferences => { "background" => "black", "display" => large }) User.find(user.id).preferences # => { "background" => "black", "display" => large }
Source: https://habr.com/ru/post/1756556/More articles:Need help java-arraylist - javaКак имитировать клики натексте с помощью python? - javascriptUser in ASP.NET MVC 2 - asp.net-mvc.Net Performance Tool - c #WiX installer: how to switch to recovery mode if it is already installed? - windowsOnly writes to disk, but iotop also reads - cManufacturer / Consumer Problem, Buffer Stream - c #Skip file creation in FileOutputStream when there is no data in Inputstream - javaHow to debug better even after using try catch - c #Where to start developing a game engine based on xml data? - javaAll Articles