I am getting this error:
Exception in thread \"main\" java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1585
Is Lazy Load applicable? Can you use an upper limit to bound the results of a piece-wise query?