javascript - Google Apps Script JDBC ResultSet to Array -



javascript - Google Apps Script JDBC ResultSet to Array -

is there improve way of retrieving results resultset? calling getstring() on each value slow. takes 2.5 seconds set 400 rows, 16 columns array before can utilize it.

the query takes 80ms faster accessing google sheet (about 2 seconds) takes long read data.

this i'm using now.

var results = stmt.executequery(); var numcols = results.getmetadata().getcolumncount(); var resultsarray = []; var count = 0; while(results.next()) { resultsarray.push([]); (var = 1; <= numcols; i++) resultsarray[count].push(results.getstring(i)); count++; }

javascript jdbc google-apps-script

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -