<?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 Incremental ingest of custom sql extension dimensions/metrics? in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Incremental-ingest-of-custom-sql-extension-dimensions-metrics/m-p/304247#M7407</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We've just started looking into custom sql extensions, to run database queries and make the results available within dynatrace.&amp;nbsp; The simple case seems straightforward enough: run a database query, and the complete result set becomes available within dynatrace.&amp;nbsp; But then, when the full query is rerun some interval later, there will be a lot of overlap between the two.&amp;nbsp; Does the ingest process map the "same" rows so that they only appear once?&amp;nbsp; Or, if the write the query so that it's incremental (get the rows in the last minute, run every minute) - does the ingest process automatically record all the results across all invocations?&lt;/P&gt;&lt;P&gt;The docs I found don't seem to go into this kind of detail...&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2026 02:07:10 GMT</pubDate>
    <dc:creator>moilejter</dc:creator>
    <dc:date>2026-09-10T02:07:10Z</dc:date>
    <item>
      <title>Incremental ingest of custom sql extension dimensions/metrics?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Incremental-ingest-of-custom-sql-extension-dimensions-metrics/m-p/304247#M7407</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We've just started looking into custom sql extensions, to run database queries and make the results available within dynatrace.&amp;nbsp; The simple case seems straightforward enough: run a database query, and the complete result set becomes available within dynatrace.&amp;nbsp; But then, when the full query is rerun some interval later, there will be a lot of overlap between the two.&amp;nbsp; Does the ingest process map the "same" rows so that they only appear once?&amp;nbsp; Or, if the write the query so that it's incremental (get the rows in the last minute, run every minute) - does the ingest process automatically record all the results across all invocations?&lt;/P&gt;&lt;P&gt;The docs I found don't seem to go into this kind of detail...&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2026 02:07:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Incremental-ingest-of-custom-sql-extension-dimensions-metrics/m-p/304247#M7407</guid>
      <dc:creator>moilejter</dc:creator>
      <dc:date>2026-09-10T02:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental ingest of custom sql extension dimensions/metrics?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Incremental-ingest-of-custom-sql-extension-dimensions-metrics/m-p/304248#M7408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/103294"&gt;@moilejter&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It depends on Output type&lt;/STRONG&gt;&lt;BR /&gt;The SQL extension does not deduplicate rows between executions. There is no "same row" detection. What happens to repeated data depends entirely on which output type you're using:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&amp;nbsp; Output Type: Metrics&lt;/STRONG&gt;&lt;BR /&gt;Each row maps to a metric data point with a timestamp of when the query ran. The metric store is a time series it doesn't care about row identity. Every execution writes new data points at the new timestamp.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Implication for your overlap question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you run a full query every minute and the same rows come back, you get new metric data points each minute not duplicates in the traditional sense, because each has a different timestamp.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2. Output Type: Logs or Business Events&lt;/STRONG&gt;&lt;BR /&gt;This is where overlap becomes a real problem. Each row becomes a discrete record stored in Grail with a timestamp. There is no deduplication.&lt;/P&gt;&lt;P&gt;Full query every minute → every row ingested as a new log/bizEvent record every minute → massive duplication&lt;BR /&gt;A row that existed 5 minutes ago and still exists now will appear 5 times in Grail&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2026 03:52:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Incremental-ingest-of-custom-sql-extension-dimensions-metrics/m-p/304248#M7408</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-09-10T03:52:36Z</dc:date>
    </item>
  </channel>
</rss>

