<?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: New riddle for the enthusiasts, who can give me the answer? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288628#M2706</link>
    <description>&lt;P&gt;&lt;SPAN&gt;FUN!&lt;BR /&gt;&lt;BR /&gt;"&lt;EM&gt;The original order of the records is not preserved. Therefore, by default the sequence of records that are chosen during deduplication is random. If you want to pick a particular record out of the duplicates, you can use the sort parameter.&lt;/EM&gt;" (&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/dynatrace-query-language/commands/filtering-commands#dedup" target="_self"&gt;docs&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; - sorting first ensures the order of records sequenced into the deduplication algorithm, potentially more predictable&lt;BR /&gt;&amp;nbsp; - deduplication first on a randomized order seems less predicatable to me&lt;BR /&gt;&lt;BR /&gt;How does this compare internally to using the sort option included in the dedup function?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; dedup {fieldA, fieldB}, sort {fieldA asc, fieldB desc}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2025 00:27:21 GMT</pubDate>
    <dc:creator>m3tomlins</dc:creator>
    <dc:date>2025-10-28T00:27:21Z</dc:date>
    <item>
      <title>New riddle for the enthusiasts, who can give me the answer?</title>
      <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288622#M2704</link>
      <description>&lt;P&gt;Hello I found more, but this is a simple example&lt;/P&gt;&lt;P&gt;Why gives:&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch logs | sort content | dedup content | summarize count()&lt;/P&gt;&lt;P&gt;A different value then:&lt;/P&gt;&lt;P&gt;fetch logs&amp;nbsp; | dedup content | sort content | summarize count()&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;&lt;P&gt;@zanting&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 19:26:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288622#M2704</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-10-27T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: New riddle for the enthusiasts, who can give me the answer?</title>
      <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288628#M2706</link>
      <description>&lt;P&gt;&lt;SPAN&gt;FUN!&lt;BR /&gt;&lt;BR /&gt;"&lt;EM&gt;The original order of the records is not preserved. Therefore, by default the sequence of records that are chosen during deduplication is random. If you want to pick a particular record out of the duplicates, you can use the sort parameter.&lt;/EM&gt;" (&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/dynatrace-query-language/commands/filtering-commands#dedup" target="_self"&gt;docs&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; - sorting first ensures the order of records sequenced into the deduplication algorithm, potentially more predictable&lt;BR /&gt;&amp;nbsp; - deduplication first on a randomized order seems less predicatable to me&lt;BR /&gt;&lt;BR /&gt;How does this compare internally to using the sort option included in the dedup function?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; dedup {fieldA, fieldB}, sort {fieldA asc, fieldB desc}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 00:27:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288628#M2706</guid>
      <dc:creator>m3tomlins</dc:creator>
      <dc:date>2025-10-28T00:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: New riddle for the enthusiasts, who can give me the answer?</title>
      <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288632#M2707</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11427"&gt;@henk_stobbe&lt;/a&gt;&amp;nbsp;I think the count returned should be same for both the queries , unless they are executed at different intervals . As they are logs which are continuously ingested even less than a second difference can give you a different count&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 02:25:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288632#M2707</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-10-28T02:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: New riddle for the enthusiasts, who can give me the answer?</title>
      <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288788#M2712</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Problem (at my end) is that every part of the "pipeline" seems to have its own limits (-;&amp;nbsp; so you can loose data in every step. Not sure how to prevent this when using multiple steps.&lt;/P&gt;&lt;P&gt;So starting with 9999 log lines, after the sort you can end up with 8888 (as an example),&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 13:17:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288788#M2712</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-10-29T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: New riddle for the enthusiasts, who can give me the answer?</title>
      <link>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288792#M2713</link>
      <description>&lt;P&gt;This is true in multiple languages, not just DQL.&lt;BR /&gt;&lt;BR /&gt;The limits on each step in the query are applied from the configuration in the tile/segment.&lt;BR /&gt;&lt;BR /&gt;This would be different from a "| limit {n}" applied at the end of the processing.&lt;BR /&gt;&lt;BR /&gt;For your riddle, however - I think it's good to remember how the dedup function works in DQL: it is not sorted by default and on a large query, sorting before dedup can improve performance quite a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 14:22:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/New-riddle-for-the-enthusiasts-who-can-give-me-the-answer/m-p/288792#M2713</guid>
      <dc:creator>m3tomlins</dc:creator>
      <dc:date>2025-10-29T14:22:08Z</dc:date>
    </item>
  </channel>
</rss>

