Memory Consumption of IRRE

View: New views
11 Messages — Rating Filter:   Alert me  

Memory Consumption of IRRE

by JoergS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I created a simple extension with a 1:n relation:

1 Category can hold n Products.

A product contains 10 RTE-fields.

The relation is build with a inline-TCA-definition
- tx_extension_category.products


This works perfect, but ...
as soon as there are around 10 products associated to a category it takes a long time to open the category.

If the count of products reaches 18 and I try to open a category the memory consumption of firefox
climbs up to over 1GB before doesn't react anymore.


Is this a known behavior of IRRE?

Can I use another technique, than inline to have the same saving-behavior? (in the category-table I have the amount of products in the field product
and in the product-table I have the category-uid in the field category, because I use the TCA-inline-option "foreign_field").


Thanks a lot in advance


Joerg
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by Oliver Klee-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Joerg Schoppet schrieb:
> A product contains 10 RTE-fields.

The RTE fields account to a very big part of the memory/performance
problem. If you deactivate the RTE (or change the fields to be non-RTE),
this will be improved a lot.


Oliver
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by JoergS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Oliver Klee schrieb:

> Hi,
>
> Joerg Schoppet schrieb:
>> A product contains 10 RTE-fields.
>
> The RTE fields account to a very big part of the memory/performance
> problem. If you deactivate the RTE (or change the fields to be non-RTE),
> this will be improved a lot.
>
>
> Oliver
I assumed this also. But the rte fields are a requirement :-(
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by Steffen Ritter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joerg Schoppet schrieb:

> Hi,
>
> Oliver Klee schrieb:
>> Hi,
>>
>> Joerg Schoppet schrieb:
>>> A product contains 10 RTE-fields.
>>
>> The RTE fields account to a very big part of the memory/performance
>> problem. If you deactivate the RTE (or change the fields to be non-RTE),
>> this will be improved a lot.
>>
>>
>> Oliver
> I assumed this also. But the rte fields are a requirement :-(
So if you wanna have >10 RTE's in your memory, you'll have memory
consumption of 10 RTE's...

Feeding 1000 mouth also need bread as for one ;)

regards

Steffen
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by Bastian Waidelich-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steffen Ritter wrote:

Hi there

> Feeding 1000 mouth also need bread as for one ;)

But bread could not be disabled if hidden.. uhm I mean: we could disable
RTEs for relations that are collapsed. Or does it work like this already?

Bastian
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by Peter Klein-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You could try switching RTE's.

TinyMCE RTE uses a different loading approach, so the code for the RTE
is only loaded once for the entire BE, compared with HTMLArea which
loads the entire code for each RTE.

--
Peter


On Thu, 09 Jul 2009 22:17:05 +0200, Joerg Schoppet <joerg@...>
wrote:

>Hi,
>
>Oliver Klee schrieb:
>> Hi,
>>
>> Joerg Schoppet schrieb:
>>> A product contains 10 RTE-fields.
>>
>> The RTE fields account to a very big part of the memory/performance
>> problem. If you deactivate the RTE (or change the fields to be non-RTE),
>> this will be improved a lot.
>>
>>
>> Oliver
>I assumed this also. But the rte fields are a requirement :-(
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by JoergS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Bastian Waidelich schrieb:

> Steffen Ritter wrote:
>
> Hi there
>
>> Feeding 1000 mouth also need bread as for one ;)
>
> But bread could not be disabled if hidden.. uhm I mean: we could disable
> RTEs for relations that are collapsed. Or does it work like this already?
>
> Bastian

this was also my thought at the beginning. I though (!!!), that IRRE (inline) and also TYPO3 (tabs) make it more the AJAX-way (only loading what is needed).

But I don't think, that this is actually the case.


Joerg
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by JoergS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Peter Klein schrieb:
> You could try switching RTE's.
>
> TinyMCE RTE uses a different loading approach, so the code for the RTE
> is only loaded once for the entire BE, compared with HTMLArea which
> loads the entire code for each RTE.
>
ok, will try.

Thanks in advance.


Joerg
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Bug in CONTENT rendering?

by Armin Günther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I would like to point your attention to a bug in rendering CONTENT
objects described by Stefan Froemken (issue  11238). Stefan posted a
solution for this bug too.
In essence, records which are querried more than once seems not to be
displayed. I think this is a major bug as it fundamentally compromises a
typoscript cObject.

My Scenario.
I tried to construct a hierachical list out of a database table like
this one:

uid | cat1 | cat2
1 | A | a
2 | A | a
3 | A | b
4 | A | b
5 | B | c
6 |  B | c
7 |  B | c
8 |  B | d
9 |  C | e
10 | C | e

Result should look like this list:

A
    a
        1. record
        2. record
    b.
        3. record
        4. record

B
    c
       5. record
       6. record
       7. record
    d
       8. record

C
    e
       9. record
       10. record

Basically my ts looked like this one (obviously the same joined table is
queried several times - not very nice perhaps, but it should work I think):

lib.my_example = CONTENT
lib.my_example {
  table = tx_table1
  select.join = tx_table2 ON tx_table1.uid = tx_table2.fid
  select.pidInList = 123
  select.orderBy = cat1
  select.groupBy = cat1
  renderObj = COA
  renderObj.10 = TEXT
  renderObj.10.dataWrap = <div class="heading_level_1">{field: cat1}</div>
  renderObj.20 < lib.my_example
  renderObj.20 {
    select.andWhere.dataWrap = tx_table1.cat1= "{field: cat1}"
    select.orderBy = cat2
    select.groupBy = cat2
    renderObj.10.dataWrap = <div class="heading_level_2">{field: cat2}</div>
    renderObj.20 < lib.my_example
    renderObj.20 {
      select.andWhere.dataWrap = tx_table1.cat2= "{field:cat2}"
      select.orderBy = content
      select.groupBy >
      renderObj.10.dataWrap = <div
class=record_content">{field:content}</div>
      renderObj.20 >
    }
  }
}

This did not work at all with the regular CONTENT object. The list was
only partially generated. The new CONTENT rendering by Stefan did the
job very well.

Best regards,
Armin
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by Michael Miousse-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Thu, 09 Jul 2009 21:25:08 +0200, Joerg Schoppet a écrit :

> Hi,
>
> I created a simple extension with a 1:n relation:
>
> 1 Category can hold n Products.
>
> A product contains 10 RTE-fields.
>
> The relation is build with a inline-TCA-definition -
> tx_extension_category.products
>
>
> This works perfect, but ...
> as soon as there are around 10 products associated to a category it
> takes a long time to open the category.
>
> If the count of products reaches 18 and I try to open a category the
> memory consumption of firefox climbs up to over 1GB before doesn't react
> anymore.
>
>
> Is this a known behavior of IRRE?
>
> Can I use another technique, than inline to have the same
> saving-behavior? (in the category-table I have the amount of products in
> the field product and in the product-table I have the category-uid in
> the field category, because I use the TCA-inline-option
> "foreign_field").
>
>
> Thanks a lot in advance
>
>
> Joerg

I ran into the same problem as you not long ago

My solution was to use the rte wizard with a little modification of my own

basicaly what i did was deactivate the rte for the record and than use the rte wizard

so when you want to modify a field with a rte you use the wizard

but if you find a better solution i would be glad to hear it

regards

Miousse
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Memory Consumption of IRRE

by JoergS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Michael Miousse schrieb:
> but if you find a better solution i would be glad to hear it
>
don't know if it is better, but I used the solution of Peter Klein "TinyMCE RTE". And with this it works.


Joerg
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev