title: What is the best way to process a large list of Domain Objects?
body: <p>What is the best way to process a large list of Domain Objects?
  For example, I have 'Users' and 'Book' domains, and there is a permission READ on Book object.
  When I'm adding a new Book, I'd like to set READ permission to all users for this Book.
  At first was a code:</p>
  
  <pre><code>def users = Users.findAll{ ... }
  users.each { addPermission(book, it, READ) }  
  </code></pre>
  
  <p>I'm using Spring Security Core and ACL plugin.
  But now, I think it is not best way to load 10000 Users Objects to memory.
  I gonna use the SCROLL method with maxResults(???) from Criteria.
  So my question is What the best way? How to determinate the best number of MaxResults?</p>