cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP 19 is here! See the new features at jmp.com/new.
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
Choose Language Hide Translation Bar
FN
FN
Level VI

Very slow Execute SQL() using ODBC driver

I am able to extract time-series data using JSL and ODBC but JMP is extremely slow.

For example, for a dataset with 50k rows and 5 columns JMP takes 50x longer using the same ODBC driver but its native tool. We breakdown the queries not to have more than 1M rows per query, so the server can handle the load with ease.

I think JMP is prefetching or treating the query as normal SQL.

In the documentation (JMP 18) I found that there are multiple options, but I am not sure how to change them using JSL.

Any ideas?


SQL_connection_str = "DRIVER={...};HOST=servername;PORT=....;MAXROWS=1000000;CHARFLOAT=N;CHARTIME=N;CHARINT=N";

dbc = Create Database Connection( SQL_connection_str );

SQL_query = "SELECT ... WHERE..";

start=tick seconds();

dt_temp = Execute SQL( dbc, SQL_query );

end=tick seconds();

runtime=end-start;
show(runtime);




2 REPLIES 2

Re: Very slow Execute SQL() using ODBC driver

What Database are you using?

FN
FN
Level VI

Re: Very slow Execute SQL() using ODBC driver

Aspentech IP21. JMP uses its 64-bit ODBC driver to connect to it. 


Recommended Articles