Grails controller (simple) code consuming too much memory. How to optimise?
问题 I have a pretty simple domain classes and a controller that while runtime consumes over 400MB - need some advice on optimising it. Basically I have two domain classes A and B, which are in a two one-to-many ralations (actually class B represents a many-to-many relationship between class A instances, - single object of A can be referenced by multiple B's objects as 'fromA' and single object of A can be referenced by multiple B's objects as 'toA' - like the GORM documentation and flights and