<?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 Error defining query layer on large dataset in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/error-defining-query-layer-on-large-dataset/m-p/528688#M29977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I�??m trying to create a dynamic map service to serve polygons from a PostgreSQL database.&amp;nbsp; The client mapping application defines the set of features to draw so I have defined my query layer with a wide open query string (select * from nfhdb2.nfps.mv_nfps_sur_pol_en).&amp;nbsp; My table is pretty big, about 1 GB in total. When I do the �??validate�?? on the layer, &lt;/SPAN&gt;&lt;STRONG&gt;ArcMap appears to be trying to load all of the results in memory at once&lt;/STRONG&gt;&lt;SPAN&gt; and I get an error: &lt;/SPAN&gt;&lt;STRONG&gt;�??Underlying DBMS error [out of memory for query result]�??&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; I watched the memory usage on the database server as the request was being made and it never exceeded 3% so it looks to me as though it has nothing to do with the database.&amp;nbsp; I also watched the ArcMap.exe process on my desktop during validation and noticed it climbing and climbing until it hit 1.3 GB before displaying the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does ArcMap request all of the features during validation?&amp;nbsp; Is there a way to avoid this?&amp;nbsp; I tried turning off the display but that didn�??t help.&amp;nbsp; Looks to me like I might have to break up the table into multiple map services�?�&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 15:29:57 GMT</pubDate>
    <dc:creator>IanDeMerchant</dc:creator>
    <dc:date>2012-02-07T15:29:57Z</dc:date>
    <item>
      <title>Error defining query layer on large dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/error-defining-query-layer-on-large-dataset/m-p/528688#M29977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I�??m trying to create a dynamic map service to serve polygons from a PostgreSQL database.&amp;nbsp; The client mapping application defines the set of features to draw so I have defined my query layer with a wide open query string (select * from nfhdb2.nfps.mv_nfps_sur_pol_en).&amp;nbsp; My table is pretty big, about 1 GB in total. When I do the �??validate�?? on the layer, &lt;/SPAN&gt;&lt;STRONG&gt;ArcMap appears to be trying to load all of the results in memory at once&lt;/STRONG&gt;&lt;SPAN&gt; and I get an error: &lt;/SPAN&gt;&lt;STRONG&gt;�??Underlying DBMS error [out of memory for query result]�??&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; I watched the memory usage on the database server as the request was being made and it never exceeded 3% so it looks to me as though it has nothing to do with the database.&amp;nbsp; I also watched the ArcMap.exe process on my desktop during validation and noticed it climbing and climbing until it hit 1.3 GB before displaying the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does ArcMap request all of the features during validation?&amp;nbsp; Is there a way to avoid this?&amp;nbsp; I tried turning off the display but that didn�??t help.&amp;nbsp; Looks to me like I might have to break up the table into multiple map services�?�&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 15:29:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-defining-query-layer-on-large-dataset/m-p/528688#M29977</guid>
      <dc:creator>IanDeMerchant</dc:creator>
      <dc:date>2012-02-07T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error defining query layer on large dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/error-defining-query-layer-on-large-dataset/m-p/528689#M29978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same error. Does anyone know how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 12:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-defining-query-layer-on-large-dataset/m-p/528689#M29978</guid>
      <dc:creator>adamestrada</dc:creator>
      <dc:date>2012-03-28T12:08:29Z</dc:date>
    </item>
  </channel>
</rss>

