Welcome Guest, Not a member yet? Register   Sign In
Can I improve on this query handling?
#1

[eluser]meigwilym[/eluser]
I've got a simple blog engine with posts comments and tags.

My model calls in a post and also gets its comments and tags. For each post a number of records are retrieved depending on the amount of comments and/or tags.

I've got a loop going that returns a more usable array, but I'm sure there's a better way.

Here's the code http://snipt.org/uSR4#expand

I find the overwrting of the post data every time very wasteful - is there a better way?

Many thanks,

Mei




Theme © iAndrew 2016 - Forum software by © MyBB