Thanks for this. On 4 Apr 2006, at 12:25, Mircea-Eugen Ionica wrote: >> Some tests I'd be interested in having (but maybe reading the source >> would give an answer too) are the optimizations available for the >> following cases: >> >> - can I get the number of subnodes of a node without taking too much >> time? >> For instance will the length of the NodeIterator returned by >> node.getNodes() be computed efficiently? > > get number of childs test > getting node took 6 milliseconds > node have 100 childs > (System.out.println( "node have " + node.getNodes().getSize() + " > childs ");) > getting node child number took 2 milliseconds I'd be interested in variation when you have 1, 10, 100, 1000 children >> - can I ask the jcr:uuid of a node which has many properties without >> incurring the cost of reading all these properties. >> Zope will do that all the time. > > get uuid test > getting node took 7 milliseconds > node have uuid 1042b872-4e1f-4600-b87d-505bbd13f71f > (System.out.println( "node have uuid " + node.getUUID()); > getting uuid took 0 milliseconds Can you check this time when there are 1, 10, 100 additional properties which are big STRING of BINARY objects? >> - can I get the length of a STRING or BINARY value efficiently, >> without the value itself being read? >> This is important to be able to fetch in one go all the small >> properties, but make the big ones lazy. > > well I'm not sure there is direct way to do that Well, Value has a getLength() method that should do it, if I'm not mistaken. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
Hosting: Nuxeo: Zope service provider
This page is a mailing archive for one of the Nuxeo projects.
[2008/11/18] Nuxeo 5.2.M3 and Nuxeo WebEngine 1.0.RC released!
[2008/11/13] First Nuxeo Developer Day (1st Dec. 2008) - Still a few seats available[2008/11/13] First Nuxeo Survey[2008/10/08] Nuxeo 5.1.6 ReleasedCorporate News[2008/11/20] Nuxeo secures 2 million Euros and strengthens its board of directors and corporate governance
[2008/11/17] Nuxeo joins OASIS[2008/10/23] IFRA Expo 2008 Amsterdam, October 27th to 30th, Booth 9363, Hall 9[2008/10/08] Nuxeo announces the appointment of Carina Rimoli as Indirect Sales Manager