Speeding up viewers

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 23, 2009   (RSS)

Re: [pothompson] Speeding up viewers

By Dave - March 23, 2009

Hi Paul,

It shouldn't take very long at all with 10,000 records. But it does depend on the web host. How many seconds is it?

You can add the following options to speed things up:

'loadUploads' => false, // won't load uploads
'loadCreatedBy' => false, // won't load values for record author user

And there is no automated way to create an index but you could do that with phpMyAdmin or MySQL Query Browser or something like that.

Also, I'm not sure how this query would return any results because a category couldn't be 10 and 34 and 78 at the same time. Did you mean OR?

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Speeding up viewers

By pothompson - March 23, 2009

I did mean OR, I read and re-read that code before I posted it to the whole world to make sure I hadn't made any mistakes!

Maybe it's not the MySQL taking a long time then, it's just the whole page takes a while to load and I'm trying to replicate an existing (non database-driven) site so I can compare the two and my version is a lot slower.

I'll have a look at a few other areas to see if I can find bottleneck.

Thanks, Paul.