Re: Reports generator

From: Date: Thu, 28 Jan 2010 15:22:00 +0000
Subject: Re: Reports generator
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-301614@lists.php.net to get a copy of this message
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

« previous php.general (#301614) next »