<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Very slow Execute SQL() using ODBC driver in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/873539#M103761</link>
    <description>&lt;P&gt;I am able to extract time-series data using JSL and ODBC but JMP is extremely slow.&lt;BR /&gt;&lt;BR /&gt;For example, for a dataset with 50k rows and 5 columns &lt;STRONG&gt;JMP takes 50x longer&lt;/STRONG&gt; 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.&lt;BR /&gt;&lt;BR /&gt;I think JMP is prefetching or treating the query as normal SQL.&lt;BR /&gt;&lt;BR /&gt;In the documentation (&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/connect-to-a-database-using-data-connectors.shtml" target="_self"&gt;JMP 18&lt;/A&gt;) I found that there are multiple options, but I am not sure how to change them using JSL.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
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);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 11:39:57 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2025-05-14T11:39:57Z</dc:date>
    <item>
      <title>Very slow Execute SQL() using ODBC driver</title>
      <link>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/873539#M103761</link>
      <description>&lt;P&gt;I am able to extract time-series data using JSL and ODBC but JMP is extremely slow.&lt;BR /&gt;&lt;BR /&gt;For example, for a dataset with 50k rows and 5 columns &lt;STRONG&gt;JMP takes 50x longer&lt;/STRONG&gt; 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.&lt;BR /&gt;&lt;BR /&gt;I think JMP is prefetching or treating the query as normal SQL.&lt;BR /&gt;&lt;BR /&gt;In the documentation (&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/connect-to-a-database-using-data-connectors.shtml" target="_self"&gt;JMP 18&lt;/A&gt;) I found that there are multiple options, but I am not sure how to change them using JSL.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
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);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 11:39:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/873539#M103761</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2025-05-14T11:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow Execute SQL() using ODBC driver</title>
      <link>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/874089#M103797</link>
      <description>&lt;P&gt;What Database are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 14:34:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/874089#M103797</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2025-05-16T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow Execute SQL() using ODBC driver</title>
      <link>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/874569#M103834</link>
      <description>&lt;P&gt;Aspentech IP21. JMP uses its 64-bit ODBC driver to connect to it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 20:16:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Very-slow-Execute-SQL-using-ODBC-driver/m-p/874569#M103834</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2025-05-19T20:16:51Z</dc:date>
    </item>
  </channel>
</rss>

