Hi Michael,<div>at the moment we do not have hierarchical groups, but we thought about it.</div><div>So having a flat group structure, I was even more surprised about the time it takes.</div><div><br></div><div>So for the moment we are using getGroupIDs(false), this is very fast as it just fetches the groups from the user.xml .</div>
<div><br></div><div>My mail was rather to make you aware of it, in case you were not.</div><div><br></div><div>Cheers</div><div>Balz<br><br><div title="signature"> </div><div class="gmail_quote">On Tue, Feb 7, 2012 at 5:56 PM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com">michael.wechner@wyona.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Am 07.02.12 14:01, schrieb basZero:
    <div class="im"><blockquote 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></div>
    yes<div class="im"><br>
    <blockquote type="cite">
      <div> How did you solve this issue?</div>
    </blockquote>
    <br></div>
    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?<div class="im"><br>
    <blockquote 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></div>
    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<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Michael</font></span><div class="im"><br>
    <blockquote 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></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div>

<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br></blockquote></div><br></div>