• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.