2

I'm running a template with 1 channel to display about 500 entries. These entries consist of a few textfields and a MX google maps field.

The page takes 4 seconds to load ( which is too long ) and when I look at the output profiler I notice a few hundred lines like this:

(0.545310 / 45.39MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata (0.552964 / 45.42MB) Calling Extension Class/Method: Playa_ext/channel_entries_tagdata (0.553339 / 45.42MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata (0.561014 / 45.45MB) Calling Extension Class/Method: Playa_ext/channel_entries_tagdata (0.561453 / 45.45MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata (0.570236 / 45.49MB) Calling Extension Class/Method: Playa_ext/channel_entries_tagdata (0.570871 / 45.49MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata (0.581254 / 45.52MB) Calling Extension Class/Method: Playa_ext/channel_entries_tagdata ...

Odd, since there are no playa or matrix fields in this channel. I asked around on the P&T support forums, but maybe you guys are able to help ?

2
  • Are you able to share the template code? Nov 7, 2012 at 14:36
  • template code doesn't really matter, it's just a channel with some fields. I already found the solution and posted it below.
    – janvl
    Nov 7, 2012 at 14:40

2 Answers 2

6

I think a good approach to this situation might be to use the Query Module. The Channel Entries tag returning that many results is going to be very heavy on queries. You can reduce the number significantly using the disable= parameter of the Channel Entries tag, disabling as much as possible, but sometimes it's much more efficient to just write a custom SQL query using the Query Module.

2
  • a bit unrelated to my question, but a good idea nevertheless. I'm going to give that one a shot.
    – janvl
    Nov 7, 2012 at 15:05
  • Well sortof. Eliminating the CE tag will kill the extensions from running as well, since they're triggered by the tag. Nov 7, 2012 at 15:29
1

Uninstalling the Matrix and Playa Extensions ( make sure you keep the field-types & module ) takes care of this.

The calls to Matrix & Playa are gone now, page loads fine. And everything else ( including Matrix & Playa fields ) still works.

5
  • So does this mean that playa & matrix extensions are useless? Sounds weird.
    – pvledoux
    Nov 7, 2012 at 14:39
  • I think if you are using Matrix/Playa elsewhere you may run into issues. Typically if you find something that randomly isn't working with these add-ons, one of the first things support will have you check is whether the extension is enabled. Nov 7, 2012 at 14:55
  • @pvledoux: Indeed, I wonder if I'm missing something crucial.
    – janvl
    Nov 7, 2012 at 14:55
  • @JeremyGimbel I'm using Matrix & Playa everywhere else across the site and it all seems to work perfectly.
    – janvl
    Nov 7, 2012 at 14:56
  • The Playa extension does a numbers of things, mainly enables some advanced parsing and rewriting module tags. Matrix does something similar. I am surprised they are working without it. These must be more advanced features. Nov 8, 2012 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.