Hi,<div><br></div><div>I have noticed very poor performance (over 5 seconds) when using</div><div>group = YarepGroupManager.getGroup(groupid)</div><div><br></div><div>and above all </div><div>group.addMember(userObject) (this call is very slow!)</div>
<div><br></div>
<div>when having thousands of users.</div><div><br></div><div>1) YarepGroupManager.getGroup(groupid)</div><div><br></div><div>When looking at the code of getGroup(), it loops over ALL users and</div><div>verifies whether the user really exists and only adds it when it exists.</div>

<div><br></div><div>From a performane point of view, I don't want the Yanel to verify the existance of 10'000 XMLs.</div><div>Is there a way to speed this up? I would prefer the usage of JAXB (just converting XML to Java or the other way round). Then, if you really need verification of some items, you can loop over all items and do your logic.</div>
<div><br></div><div>2) group.addMember(userObject)</div><div>on my local laptop, this method took 5 seconds alone with 1000 users.</div><div><br></div><div>the code mainly does:</div><div>- first add the group to the user XML (which should be quick, did not measure it yet)</div>
<div>- secondly the user id gets added to the group XML: here also createConfiguration() gets called which loops over all items, I think this is just too slow when not using a marshalling engine like JAXB.</div><div><br></div>
<div>What is your experience? What can I do?</div><div><br></div><div>Cheers</div><div>
Balz</div><div></div>
<div title="signature"> </div>