<?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: Is there a length limit when using setDefinitionExpression? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462911#M42790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's a ton of "OR"'s.&amp;nbsp; I considered doing an inverse query but I think that might be just as bad.&amp;nbsp; (these are statewide sampling locations so there are A LOT of them.&amp;nbsp; I will try using an "IN" statement and see if that works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2019 16:55:26 GMT</pubDate>
    <dc:creator>Andrew-Bowne</dc:creator>
    <dc:date>2019-05-09T16:55:26Z</dc:date>
    <item>
      <title>Is there a length limit when using setDefinitionExpression?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462909#M42788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a javascript application that sets a definition expression to a map service layer based on user-defined criteria.&amp;nbsp; There are instances where this expression can be very lengthy (for instance, one problematic expression is 24,000 characters).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limit to how long a definition expression can be?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do (will) definition expressions use a proxy service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 16:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462909#M42788</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2019-05-09T16:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a length limit when using setDefinitionExpression?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462910#M42789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Andrew&lt;/SPAN&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;Wow a 24,000 character definition expression... Are you using a ton of AND or ORs in the SQL? If so you should try using IN instead. The limitation is not a hard set limitation and varies on the underlying Database used. A Google search will reveal several results and nothin with a specific limit, just general advice to reconsider your workflow if your query is that large, (like consider an inverse of the SQL statement).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 16:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462910#M42789</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-09T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a length limit when using setDefinitionExpression?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462911#M42790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's a ton of "OR"'s.&amp;nbsp; I considered doing an inverse query but I think that might be just as bad.&amp;nbsp; (these are statewide sampling locations so there are A LOT of them.&amp;nbsp; I will try using an "IN" statement and see if that works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 16:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462911#M42790</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2019-05-09T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a length limit when using setDefinitionExpression?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462912#M42791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is far more efficient than a ton of Ors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 16:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-length-limit-when-using/m-p/462912#M42791</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-05-09T16:58:12Z</dc:date>
    </item>
  </channel>
</rss>

