Re: [oxid-dev-general] New Folder Structure in 4.7.0

2012-09-17 Thread Chris Jolly
Hi Linas, I also wanted to say how much I like the improvements you the OXID team have made to the shop initialization process in 4.7.0. When tracing the new core through a full page cycle in Eclipse, the new structure makes it a lot easier to understand what’s going on in the early phases,

[oxid-dev-general] Base unload method for avoiding constantly increasing memory consumption? What do you think about this?

2012-09-17 Thread André Herrmann
Hi folks, several times I ran into the same issue with continuously increasing memory consumtion if I loop a huge list of e g. article ids like this: foreach ( $aOXIDs as $sOxid ) { $oArticle = oxNew('oxarticle'); $oArticle-load($sOxid); } even if I try to clone an object it will have just

Re: [oxid-dev-general] Base unload method for avoiding constantly increasing memory consumption? What do you think about this?

2012-09-17 Thread Alexander Kludt
Hi, Did you try to use unset on the object to force garbage collection? This is all part of the garbage collection, and this can not be triggered without releasing all references. best

Re: [oxid-dev-general] Base unload method for avoiding constantly increasing memory consumption? What do you think about this?

2012-09-17 Thread André Herrmann
Hi Alex, and this can not be triggered without releasing all references. and this is what I mean. The oxid framework knows (or should) which instances have been created, so it should offer a possibility to clean up the whole chain back imho. Would be not so problematic if memory consumption

Re: [oxid-dev-general] Base unload method for avoiding constantlyincreasing memory consumption? What do you think about this? [T-CC8GZDZCJA-72]

2012-09-17 Thread Bernd Hasis
Hi, my solution and I dont have any bad results by doing it this way: $oArticle = oxNew('oxarticle'); foreach ( $aOXIDs as $sOxid ) { $oArticle-load( $sOxid ); } So, I init the object before the foreach and use the same object on every foreach iteration. Mit den besten Grüßen aus Lünen i.

Re: [oxid-dev-general] Base unload method for avoiding constantlyincreasing memory consumption? What do you think about this? [T-CC8GZDZCJA-72]

2012-09-17 Thread [.nfq] Mažvydas Skuodas
hi,  oxarticle stores reference to objects if it has variants. search for static in oxarticle.php and write the module to unset from that array Sent from Mobile. André Herrmann andre.herrm...@fatchip.de wrote: Hi, I can remember that I tried it like this some time ago and it did not work

Re: [oxid-dev-general] Base unload method for avoiding constantlyincreasing memory consumption? What do you think about this? [T-CC8GZDZCJA-72]

2012-09-17 Thread Daniel Schlichtholz
Hi André, I don't know if this helps in your case but as far as we investigated this: when loading article lists OXID by default also loads the parent product and all of the variants of the parent product (although you just wanted to load the given variant). This eats up memory. Fortunately