<?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 Re: Open Data Base Efficiency/Run Time in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807237#M98622</link>
    <description>&lt;P&gt;New SQL Query can run multiple queries simultaneously, if you use the &amp;lt;&amp;lt;Run Background message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you can keep it simple by using Custom SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each( {v, i}, queries,
			New SQL Query(
				Connection( constring ),
				Custom SQL(
					"SELECT Col1, Col2&lt;BR /&gt; FROM Table1&lt;BR /&gt; WHERE Col1 = 'Good Data'"
				),
				Query Name( v || " contents" )
			) &amp;lt;&amp;lt; Run Background(
				On Error( Print( "Huh.  Didn't work." ) ),
				On Run Complete( dt = QueryResult...... )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Oct 2024 13:31:49 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2024-10-21T13:31:49Z</dc:date>
    <item>
      <title>Open Data Base Efficiency/Run Time</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807081#M98591</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;When you use&amp;nbsp;Open Database() it opens the database and runs the query. Well, when you need to run multiple queries on the same database does it hinder run time performance?&lt;BR /&gt;&lt;BR /&gt;When I run local queries the run time is super quick every time. However,&lt;BR /&gt;when I run several queries on JMP with Open DataBase() I seem to get mixed results. I'm thinking I may be losing performance by reconnecting to the db over and over.&lt;BR /&gt;&lt;BR /&gt;Is there a way to stay connected to the db and pass in queries?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;for(i=1, i&amp;lt;=N Items(query_list), i++,
Open DataBase(server, query_list[i], "foo");
wait(1);
);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 02:42:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807081#M98591</guid>
      <dc:creator>aharro</dc:creator>
      <dc:date>2024-10-21T02:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data Base Efficiency/Run Time</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807091#M98592</link>
      <description>&lt;P&gt;I would suggest using New SQL Query() instead of other methods (&lt;LI-MESSAGE title="Which way to go query database?" uid="652420" url="https://community.jmp.com/t5/Discussions/Which-way-to-go-query-database/m-p/652420#U652420" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;). It is the most complicated one and has lacking documentation (in my opinion) but it is still the way which will be getting enhancements.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 04:09:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807091#M98592</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-21T04:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Open Data Base Efficiency/Run Time</title>
      <link>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807237#M98622</link>
      <description>&lt;P&gt;New SQL Query can run multiple queries simultaneously, if you use the &amp;lt;&amp;lt;Run Background message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you can keep it simple by using Custom SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each( {v, i}, queries,
			New SQL Query(
				Connection( constring ),
				Custom SQL(
					"SELECT Col1, Col2&lt;BR /&gt; FROM Table1&lt;BR /&gt; WHERE Col1 = 'Good Data'"
				),
				Query Name( v || " contents" )
			) &amp;lt;&amp;lt; Run Background(
				On Error( Print( "Huh.  Didn't work." ) ),
				On Run Complete( dt = QueryResult...... )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2024 13:31:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-Data-Base-Efficiency-Run-Time/m-p/807237#M98622</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2024-10-21T13:31:49Z</dc:date>
    </item>
  </channel>
</rss>

