mirror of
https://github.com/ash-project/ash_archival.git
synced 2024-09-21 22:12:56 +12:00
1,010 B
1,010 B
Archival
Extension
This extension modifies a resource in the following ways.
- Adds a private
archived_at
utc_datetime_usec
attribute. - Adds a base filter to the resource, for
is_nil(archived_at)
- Marks all destroy actions as
soft?
, turning them into updates - Adds a change to all destroy actions that sets
archived_at
to the current timestamp - Adds a change that will iteratively load and destroy anything configured in
d:AshArchival.Resource.archive|archive_related
Considerations
Performance of Archive Related
d:AshArchival.Resource.archive|archive_related
is a simple iterative process. It is performed synchronously, and therefore is not suited for large cardinality relationships. Eventually, when bulk actions are supported, this can be migrated to use that. If you need to archive a very large amount of related things, you will need to write a custom change to handle this.
More
See the Unarchiving guide For more.