Skip to content

Instantly share code, notes, and snippets.

@pygillier
Created February 2, 2015 09:24
Show Gist options
  • Save pygillier/79e087e24257b408d0eb to your computer and use it in GitHub Desktop.
Save pygillier/79e087e24257b408d0eb to your computer and use it in GitHub Desktop.
Fast count of domain records in GSP
<dl>
<g:each in="${grailsApplication.domainClasses}" var="domainClazz">
<dt>${domainClazz.name }</dt>
<dd>${domainClazz.clazz.count() }</dd>
</g:each>
</dl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment