I need to store a json string in database and to select entries depending on the values of json object. Is there any way to do this selection using mysql ? (i am using php, mysql 5.1)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why don’t you use a document database instead of MySQL? They were created just for this purpose. Have a look at MongoDB.
If MongoDB is not an option, you could also dump a relevant subset of the data in a Lucene index (see Zend_Search_Lucene) and search the Lucene index to retrieve the record ID’s of the objects that match your search criteria (and retrieve these from MySQL afterwards).