Serialized values or separate table, which is more efficient?
Posted
by
Aravind
on Programmers
See other posts from Programmers
or by Aravind
Published on 2014-06-02T12:59:49Z
Indexed on
2014/06/02
15:56 UTC
Read the original article
Hit count: 380
I have a Rails model email_condition_string with a word column in it. Now I have another model called request_creation_email_config with the following columns
- admin_filter_group:references
- vendor_service:references
- email_condition_string:references
email_condition_string has many request_creation_email_config and request_creation_email_config belongs to email_condition_string.
Instead of this model a colleague of mine is suggesting that strong the word inside the same model as comma separated values is efficient than storing as a separate model. Is that alright?
© Programmers or respective owner