<?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: Arcade aggregate functions: Does the DB or the app do the aggregation? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269324#M66867</link>
    <description>&lt;P&gt;Sorry, my answer was a bit web-specific. You'd need a different program like Fiddler to watch the network traffic generated by Pro, but I'd be willing to be it's the same over there.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 03:31:35 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-03-20T03:31:35Z</dc:date>
    <item>
      <title>Arcade aggregate functions: Does the DB or the app do the aggregation?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269282#M66859</link>
      <description>&lt;P&gt;Regarding Arcade aggregate functions like &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#groupby" target="_self" rel="nofollow noopener noreferrer"&gt;GroupBy()&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;What level of the stack does the aggregation/processing?&lt;/P&gt;&lt;P&gt;For example, does Arcade generate an SQL DISTINCT or GROUP BY query and send that to the database? (in my case, Oracle)&lt;/P&gt;&lt;P&gt;Or do all features get returned to ArcGIS Pro, and ArcGIS pro does the aggregation locally?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 19:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269282#M66859</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-03-19T19:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade aggregate functions: Does the DB or the app do the aggregation?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269323#M66866</link>
      <description>&lt;P&gt;For the most part, the database. You can turn on your browser's dev tools and watch the GET requests sent off to the server, and you guess correct, it generates and sends the appropriate aggregate query to the REST endpoint.&lt;/P&gt;&lt;P&gt;However! You can have a FeatureSet created manually (like a Data Expression in a dashboard) and &lt;EM&gt;still &lt;/EM&gt;use aggregate functions against them, so it's clearly doing the work locally in such cases.&lt;/P&gt;&lt;P&gt;I didn't document any of it, but I did some random testing of the very thing you're asking, and even very convoluted expressions (think multiple aggregations and filters in sequence) still seem to be compiled and sent off in as simple a query as possible. For instance, getting a FeatureSet, then calling Filter and GroupBy on it is not 3 server requests, it's just &lt;STRONG&gt;one&lt;/STRONG&gt;, but with the appropriate parameters filled in.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 03:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269323#M66866</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-20T03:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade aggregate functions: Does the DB or the app do the aggregation?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269324#M66867</link>
      <description>&lt;P&gt;Sorry, my answer was a bit web-specific. You'd need a different program like Fiddler to watch the network traffic generated by Pro, but I'd be willing to be it's the same over there.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 03:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-aggregate-functions-does-the-db-or-the-app/m-p/1269324#M66867</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-20T03:31:35Z</dc:date>
    </item>
  </channel>
</rss>

