Dear developers!<br><br>I&#39;m trying to read project annotations from the annotation table. There are many large text annotations to single projects, in total they could become a few MB and I ran into Ice::MemoryLimitExceptions. I tried to only load the link definition and loop through the list on the application level in order to fetch single annotations. The code in Python is similar to this:<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query = &#39;&#39;&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select pal from ProjectAnnotationLink pal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left&nbsp; join pal.parent p<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where <a href="http://p.id">p.id</a> = %i&#39;&#39;&#39; % projectId<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; annotationLinks = queryService.findAllByQuery(query, None)<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for link in annotationLinks:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; query = &#39;&#39;&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select pal from ProjectAnnotationLink pal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left join fetch pal.child a<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left outer join fetch a.details.creationEvent<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where <a href="http://pal.id">pal.id</a> = %i&#39;&#39;&#39; % link.id.val<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l = self.querys.findByQuery(query, None)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yield l.child<br><br>However, I still get an Ice::MemoryLimitExcpetion during the execution of the first query. Is this expected, how can I avoid this? Changing the Ice.MessageSizeMax property to large values (several MB) didn&#39;t solve the problem.<br>
<br>Thanks for help! Bernhard<br>