2.10.1.8.4. Result Set Size Hint
To specify a result set size hint to those databases that support it, specify a hint name of openjpa.hint.OptimizeResultCount with an integer value greater than zero. This causes the SQL keyword OPTIMIZE FOR to be generated.