java - Netezza Streaming ResultSet -


i having memory issues because trying read huge resultset netezza database. netezza support kind of "streaming" resultset mysql does? if not, limiting fetch size work instead?:

stmt.setfetchsize(50);  conn.setautocommitmode(false); 

if want pull rows store in file, best best use remote external table.

here example creates transient remote external table on jdbc. invoke bulk export/load funciontality provided jdbc driver, , create pipe delimited text file.

create external table 'c:\mytest.txt'  using (delimiter '|' remotesource 'jdbc' ) select * table1; 

you can call using conn.createstatement().execute, , have add change file specification c:\mytest.txt escape existing backslash.

you can read more external tables in documentation here.

you can use setfetchsize, way. i'm not sure solve memory issue though.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -