I am using hibernate with spring boot.
I am firing one query which joins 3 tables and stores data in projection(only 5 columns) and fetch 300 rows(so 300 objects).
But this takes lot of memory, I am debugging it and found there are too many instances of
Count : 854
Retained Size : 20MB
What is this size for?
Can it be reduced? Its contans Map inside map inside map ?