On Thu, Jan 28, 2010 at 01:31:30AM -0800, Allen McCabe wrote:

<snip>

> 
> SIDE QUESTION: What do you think of my use of serialization? I don't see a
> need to store duplicate information in new tables, and thought serializing
> these one shot reports the best solution.

I couldn't really find a good reason to store the serialized
representation of the queries, to be honest. In fact, the only reason I
would store the serialized representation of anything is as a last
resort, when no other way of storing it makes sense.

Going back to the methodology I covered in my previous email, I wouldn't
store the results of a query in a database. If you find you simply must
save the results, just jam the whole HTML page into a string and store
that (unless I'm misunderstanding what you're doing). Otherwise, just
generate the report in real time.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to