<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 07.02.12 14:01, schrieb basZero:
<blockquote
cite="mid:CAOXzDSG5pHWo-BnW8r9te+qkmA8gNzJjOa3G+wHFSjYOM0yyiQ@mail.gmail.com"
type="cite">dear all,
<div><br>
</div>
<div>I observed a severe performance issue if you call the
getGroupIDs method with boolean TRUE (return also parent
groups):</div>
<div>- I have 1000 users locally installed</div>
<div>- I did a test with retrieving groups with parents: 1300ms
and once without parents: 1 to 2ms</div>
<div><br>
</div>
<div>1)</div>
<div>Did anybody use parent groups?</div>
</blockquote>
<br>
yes<br>
<blockquote
cite="mid:CAOXzDSG5pHWo-BnW8r9te+qkmA8gNzJjOa3G+wHFSjYOM0yyiQ@mail.gmail.com"
type="cite">
<div> How did you solve this issue?</div>
</blockquote>
<br>
you mean the peformance issue?<br>
<br>
I think this depends very much about the context, how the groups are
being nested and how often one is calling this method.<br>
<br>
In what context are you using it or rather what do you try to
accomplish?<br>
<blockquote
cite="mid:CAOXzDSG5pHWo-BnW8r9te+qkmA8gNzJjOa3G+wHFSjYOM0yyiQ@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>2)</div>
<div>However: the difference from a performance point of view
seems a bit too distinct, maybe the code could be improved? </div>
<div>If there is a description somewhere, what
exactly YarepUser.getGroupIDs(true) should do,</div>
</blockquote>
<br>
See the javadoc at<br>
<br>
src/core/java/org/wyona/security/core/api/User.java#getGroupIDs(boolean)<br>
<br>
You might also have a look at<br>
<br>
src/util/java/org/wyona/security/util/GroupUtil.java#getGroupIDs(Group,
boolean)<br>
<br>
HTH<br>
<br>
Michael<br>
<blockquote
cite="mid:CAOXzDSG5pHWo-BnW8r9te+qkmA8gNzJjOa3G+wHFSjYOM0yyiQ@mail.gmail.com"
type="cite">
<div> then I could take a look at the code and give my feedback on
it.</div>
<div><br>
</div>
<div>Cheers</div>
<div>Balz</div>
<div><br>
</div>
<div title="signature"> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>