Trim Archive History GP Tool offers only "Delete" as the Trim Mode. I would like to see a "Compress" option added to this tool, OR a separate tool created.
The "Compress" archive tool would function like this:
- User Adds archived table or feature class to the tool as the Input Table parameter
- User Chooses "Compress" Trim Mode (if adding functionality to existing Trim Archive History tool)
- User Chooses a Compress Before Date (records newer than this date are not affected by the tool)
- User Chooses a Compress Archive Into selection:
- Days
- Weeks
- Months
- Quarters
- Years
- User Clicks Run to execute the tool.
- The tool selects the records with GDB_TO_DATE < Compress Before Date
- Time Spans are derived using:
- The Compress Archive Into parameter selection
- The table's Archive Date
- The Compress Before Date parameter value
e.g. Compress Archive Into: Years
Archive Date: 7/4/2023
Compress Before Date: 9/1/2025
Resulting Time Spans: 2023 (7/4 - 12/31), 2024 (1/1 - 12/31), 2025 (1/1 - 9/1)
- For Each Time Span:
- IF Multiple Rows Exist (i.e. Edits) for a Single Object
- The Newest is Retained and Updated with the Oldest's GDB_FROM_DATE
- ALL Older Rows are Deleted