database - What is an ideal way of storing dynamic data in Rails? -


i have dynamic form generator user can determine layout of form , use form collect data. first implementation comes mind simplistic one:

i have 2 models, form model , formrecords model. form model stores name , layout of form , formrecords model stores form_id, user_id , key-value pairs layout specifies.

one problem implementation formrecords model have many entries, implementation used formdata model stored entire set of data specific form , specific user combination in encoded format, ruby hash, might work. feel there speed issues doing during lookup , data manipulation (i.e. select/join)

is there better way implement this?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -