3 Replies Latest reply on Sep 17, 2010 9:33 AM by Nicola Ben

    s:hasPermission - how to avoid multiple DB hits ?

    first last Newbie

      Hi all,

      I am using Seam's security mechanism (with the default jpaPermissionStore).
      I have a lot of s:hasPermissions all over the place, and lots of ajax too.
      This results in a ton of DB queries made by the PermissionManager, finding out if the user has the proper permissions - on every little button click...

      Is there a way to avoid these excessive DB hits ?
      My intention would be: Get the user's permissions and store them on the conversation (or even session), and stop re-querying them all the time (!)