Hi,

While I still wonder about why detaching my entities doesn't reduce my heap 
memory usage,
I also wonder whether there is a possibility for a query to return detached 
objects in the first place?
This might be quite efficient for scenarios where you need to read lots of data 
but not update it or need any other features of a managed entity.
Calling detach() for every object looks to be rather expensive, and above 
method would not only avoid that but could possibly avoid some attachment 
overhead aswell.
___________________________________________________

SMA Solar Technology AG
Aufsichtsrat: Guenther Cramer (Vorsitzender)
Vorstand: Juergen Dolle, Roland Grebe, Uwe Hertel, Pierre-Pascal Urbon, Marko 
Werner
Handelsregister: Amtsgericht Kassel HRB 3972
Sitz der Gesellschaft: 34266 Niestetal
USt-ID-Nr. DE 113 08 59 54
WEEE-Reg.-Nr. DE 95881150
___________________________________________________

Reply via email to