How "detect deleted" works in full aggregation?
- This is for full aggregation with "Detect Deleted" checked in its task definition. For Delta aggregation, "Detect Deleted" will be ignored;
- The delete phase always happens after the primary aggregate phase during a aggregation;
- In the primary aggregate phase, no matter the optimization option is enabled or not, accounts that exist in source will always have their last refresh timestamp updated;
- When the aggregation starts, it gets the current timestamp ( Date startTimestamp = new Date() ) and when it gets to the delete phase, it does the comparison as below:
- select *
- from spt_link
- where (last_refresh < startTimestamp or last_refresh isnull) and
- created < startTimestamp and
- application = "source app";
Hope this helps with your understanding of how should-be-deleted accounts are detected.
For more details on aggregation workflow, please see Aggregation Data Flow.pdf
Comments
Dec 31, 2019
01:10 PM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Content to Moderator
Dec 31, 2019
01:10 PM
How can we do this with delta. The source always returns all records, but we check delta to eliminate redundant refreshes. If I could also get deletes to work this way it would prevent creating another task for deletes.
Mar 30, 2020
06:56 PM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Content to Moderator
Mar 30, 2020
06:56 PM
is there any way to intercept these records to be deleted and set a flag instead? If so, in which rule?
Apr 05, 2021
10:36 AM
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Content to Moderator
Apr 05, 2021
10:36 AM
Hi shikida, were you able to find a solution to intercept deleting records?
Version history
Revision #:
2 of 2
Last update:
Jul 25, 2023
06:21 PM
Updated by: