Script eats up all memory during sub-item list printing

2 views
Skip to first unread message

Alexander Obuhovich

unread,
Jun 7, 2010, 8:54:07 AM6/7/10
to In-Portal Bugs
I've recently discovered, that when we have sub-item (e.g. phrase, order items) list on the template with per_page="-1" parameter set, then it prints all records related to particular main item (e.g. language, order). This is not a problem, when we have main item ID somehow available on the page or in the url.

When main item ID is missing, then all data from the table is printed. When we have thousands of records in database, then printing them on one page will probably eat up all available memory. This is exactly what I've noticed.

To verify that try to set per_page="-1" for phrase list (under "regional" folder in administrative console) and then just visit phrase listing template from browser.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
always_set_sub_item_list_parent_filter.patch

Alexander Obuhovich

unread,
Jun 10, 2010, 3:12:35 PM6/10/10
to In-Portal Bugs

Dmitry Andrejev

unread,
Jun 10, 2010, 5:02:45 PM6/10/10
to in-port...@googlegroups.com
Thanks Alex.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Phil -- wbtc.fr --

unread,
Jun 10, 2010, 6:47:29 PM6/10/10
to in-port...@googlegroups.com
where is this phrase listing template?
it's a pity there no corner about "tips and tricks" about inportal ^-^

2010/6/10 Dmitry Andrejev <dand...@gmail.com>

Dmitry Andrejev

unread,
Jun 10, 2010, 6:52:12 PM6/10/10
to in-port...@googlegroups.com
Hi Phil,

It's more for developers in Admin. Most of standard Front end won't apply here.

Remember In-Portal can be used far beyond the distribution themes ;)


DA.

Phil -- wbtc.fr --

unread,
Jun 10, 2010, 7:22:35 PM6/10/10
to in-port...@googlegroups.com
and that's why I'd like to use it far beyond that I ask so many questions :)


2010/6/11 Dmitry Andrejev <dand...@gmail.com>

Alexander Obuhovich

unread,
Jun 11, 2010, 2:58:53 AM6/11/10
to in-port...@googlegroups.com
Phrase listing template is template, where all language phrases are listed. We have 2 of them:
  1. in "Configuration -> Website -> Regional" -> Edit Language -> Phrases tab
  2. in "Website & Content -> Labels & Phrases"

Phil -- wbtc.fr --

unread,
Jun 11, 2010, 10:27:26 AM6/11/10
to in-port...@googlegroups.com
thank you for this detail, I was thinking about that but now I'm sure.

2010/6/11 Alexander Obuhovich <aik....@gmail.com>
Reply all
Reply to author
Forward
0 new messages