Jump to content

Serialization: should i?


NemoPS

Recommended Posts

Hi everybody,

I'm working on improving one of my modules, and i was thinking on serializing some data into the database.

The data is the result of a GetProductProperties call. So, large data. I was thinking to serialize it with a cron job, so the there is no need to call that heavy function every time, and thus reducing table stress. I'd go this way so;

 

cron job: serialize the result of GetProductProperties() every hour

 

on front office, at page reload: get the serializd data base on current group/currency/lang, unserialize and use it.

 

Of course, the serialized string is pretty big. At this time i get unserialization error of unexpected end.

 

Will this method increase or decrease page loading time for each visit?

 

Cheers

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...