Groovy & Grails Architecture Best Practices
1.1. Separations Layers
Keep separate layer
for domain logic and presentation logic. Keep domain logic to domain classes
and presentation logic in controllers/views
1.2. Improve Performance
An
application might be slow simply because its executing way more queries than it
needs to. For that reason, you should always profile your application to find
out what's happening