I have an application which analyzes facebook user likes and shows him/her a video based on that data. Now the question is that I need to store the user like data in MYSQL table. the data looks approximately like this
array(2) { ["data"]=> array(46) { [0]=> array(4) { ["category"]=> string(21) "Media/news/publishing" ["name"]=> string(20) "Cosmopolitan Armenia" ["id"]=> string(15) "146307748762264" ["created_time"]=> string(24) "2013-03-20T14:40:43+0000" } [1]=> array(4) { ["category"]=> string(17) "Telecommunication" ["name"]=> string(5) "Zangi" ["id"]=> string(15) "386291674718829" ["created_time"]=> string(24) "2013-03-20T11:07:46+0000" } [2]=> array(4) { ["category"]=> string(13) "Musician/band" ["name"]=> string(11) "Ray Charles" ["id"]=> string(12) "430894850091" ["created_time"]=> string(24) "2013-03-16T22:03:46+0000" } [3]=> array(4) { ["category"]=> string(4) "Cars" ["name"]=> string(13) "Mazda Armenia" ["id"]=> string(15) "447042531989769" ["created_time"]=> string(24) "2013-03-16T22:01:46+0000" } [4]=> array(4) { ["category"]=> string(13) "Musician/band" ["name"]=> string(16) "Lockport Artists" ["id"]=> string(15) "615416628475063" ["created_time"]=> string(24) "2013-03-16T21:07:22+0000" }
what structure could you recommend for keeping such a data. I could keep in one column as a long text but it will be very unprofessional and the response time will be very high.