<?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: Slow performance for SQL query output tables... in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421529#M24048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your problem description is unclear.&amp;nbsp; How long do the SQL queries take to execute (in seconds)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How large are the resulting shapefiles (in rows, and Mb)?&amp;nbsp; What is your tool doing (source)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you repopulating the contents with every click?&amp;nbsp; What RDBMS source is in use?&amp;nbsp; Why can't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you use the SQL constraint as a query definition directly from database? (shapefiles corrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL data upon download and cleanup is far uglier)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 10:55:36 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2013-12-04T10:55:36Z</dc:date>
    <item>
      <title>Slow performance for SQL query output tables...</title>
      <link>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421528#M24047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to create a tool that queries a large geodatabase table based upon user input, converts the output table to a shapefile and adds the shapefile to the Table Of Contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I have successfully generated this tool (it works fine for small database files), the temporary output table from the SQL query responds slower and slower to any successive operation as a function of how large the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;original&lt;/SPAN&gt;&lt;SPAN&gt; geodatabase table is.&amp;nbsp; The query itself acts very fast, but the table it produces becomes unusable when it is derived from a sizeable source (millions of rows).&amp;nbsp; The output table itself could have very few rows, but if the original database was large, the output table struggles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This happens no matter what tool I use (Make Query Table, Table To Table, etc.), as long as that tool includes an SQL query.&amp;nbsp; And the issue is not related to the successive tool that acts upon the output table.&amp;nbsp; Even if I add the temporary SQL output table to my TOC, it cannot even be opened (it just spins and spins and spins).&amp;nbsp; This behavior happens whether I use Model Builder, a python script, or just running the tools individually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My instinct is that this is some sort of memory allocation issue, but it's not obvious to me how exactly to diagnose the problem.&amp;nbsp; Any help would be sincerely appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 07:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421528#M24047</guid>
      <dc:creator>JamesDickson</dc:creator>
      <dc:date>2013-12-04T07:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Slow performance for SQL query output tables...</title>
      <link>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421529#M24048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your problem description is unclear.&amp;nbsp; How long do the SQL queries take to execute (in seconds)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How large are the resulting shapefiles (in rows, and Mb)?&amp;nbsp; What is your tool doing (source)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you repopulating the contents with every click?&amp;nbsp; What RDBMS source is in use?&amp;nbsp; Why can't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you use the SQL constraint as a query definition directly from database? (shapefiles corrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL data upon download and cleanup is far uglier)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 10:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421529#M24048</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-12-04T10:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Slow performance for SQL query output tables...</title>
      <link>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421530#M24049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SQL queries take just a second or two.&amp;nbsp; The resulting tables are not big at all... maybe 5000 rows, if that.&amp;nbsp; But they are extracted from a database of ~600M rows, which is stored in a file geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be more clear if I separate my problem from my tool.&amp;nbsp; This problem occurs even when I run the SQL query in isolation.&amp;nbsp; No matter how I achieve the SQL query (Make Query Table, Table To Table, etc.), the resulting table chugs and chugs (I've tried this on multiple machines, both running 10.1).&amp;nbsp; So the problem appears long before I get to the stage where it gets converted to a shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this information helps.&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421530#M24049</guid>
      <dc:creator>JamesDickson</dc:creator>
      <dc:date>2013-12-04T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Slow performance for SQL query output tables...</title>
      <link>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421531#M24050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;600M is about 580M more than I would ever place in a file geodatabase (or an enterprise&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geodatabase, for that matter).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have index(es) on your query terms?&amp;nbsp; Does the query really complete, or does&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it just stop returning rows?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/slow-performance-for-sql-query-output-tables/m-p/421531#M24050</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-12-04T11:40:48Z</dc:date>
    </item>
  </channel>
</rss>

