l0ve2hat3 Posted March 22, 2010 Share Posted March 22, 2010 i have a HUGE array that i need to store in a mysql database. unserialize is EXTREMELY slow... json_decode is faster but is there a way i can unserialize an array faster? would increasing memory make this faster? Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 22, 2010 Share Posted March 22, 2010 Is there some reason you can't store the data in an associated table insted of serializing it? Quote Link to comment Share on other sites More sharing options...
l0ve2hat3 Posted March 22, 2010 Author Share Posted March 22, 2010 @mjdamato I could do that and of course that would be better, but i want to know about making unserializing the array. Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 22, 2010 Share Posted March 22, 2010 Well, I doubt you are going to find a more efficinet method than the functions that already exist - which you have already used. There may be shortcuts you could implement if you are only using some of the data from the arrays, but it would be specific to your needs. Quote Link to comment Share on other sites More sharing options...
l0ve2hat3 Posted March 23, 2010 Author Share Posted March 23, 2010 ah good idea... i guess i can store different parts of the array in different fields thanks for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.