By: Sebastian
Date: 2009-03-27
Time: 15:24
|
Slow rendering of sub blocksHello, tbs it great!!!
One thing always makes me sad is the bad performance of sub blocks. I have multiple data entries and for each entry I have eg. some countries, some memos, some specials, meaning data from different tables in the database. Why is there this performance issue and how can I sove it? I think for me headergrp, footergrp and so on are not working. One line of data to show:
Data is in an array like this:
|
||
By: Skrol29
Date: 2009-03-27
Time: 15:48
|
Re: Slow rendering of sub blocksBut what is the template code ?
|
||
By: Sebastian
Date: 2009-03-27
Time: 17:16
|
Re: Slow rendering of sub blocksSomething like
and so on! If you need complete code I hove to prepare it first. One row of data with some columns where I have more than one data to show. |
||
By: Skrol29
Date: 2009-03-28
Time: 23:03
|
Re: Slow rendering of sub blocksHi Sebastian,
> Why is there this performance issue and how can I sove it? Using sub blocks cost one MergeBlock() for each record of the main block. This can be a lot. And in your case, you are using 6 sub blocks for your main block. And a MergeBlock() is doing a complete data retreiving and a complete block search/analyzis. Since your data is in the same array, you may don't need a MergeBlock() to retreive it. For example, you can use a custom onformat function to get the SEED_COMPANY items of the current record and put them into a table or separate them with a line break. You can also try to use parameter "ope=list" (see http://www.tinybutstrong.com/manual.php#html_field_prm_ope ) This can replace several of your sub blocks. Memo for example. |