Hi gang! I need to store a range of unique strings. For each unique string, i need to store this in the DB:
["Unique title/unique description"] -> [3][pointer_to_posting 1, pointer_to_posting 2, to_posting 3]
I have a model for the posting, but i do not have a model for [unique title]. All I want to do is to store a list of questions for any given unique title/description
I was wondering, what is the best way to store this?
- Should I be hashing up the title/description, or is it ok to leave it the way it is?
- Should I have a unique id, and index the title/description?
- What is the best "ruby-ish" way to do this?
If you have past experiences, would be great if you folks could share what you did!