I've found here several topics about tables with huge amount of data. Answer to this question was: narrow your queries or do statement.enableStreamingResults(). These solutions are not situable to me, since I use Hibernate Search that do the queries for me. Is it possible to config MySQL in such way that enableStreamingResults() is set by default?
↧