You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently using paper_trail and have billions of items in the versions table and the table is huge.
One of the reasons is that we have touch: true in associations and every change in the child record touches parent record and a new version record for this is created.
In reality, most (all?) projects do not need to track just this column change, additionally to other columns like lock_version.
So, I think these should be ignored by default. I propose to not change the library to ignore it, but extend the generator to also generate an initializer file for people to use in their projects and to have these columns ignored in it. Having this initializer will be also easier for users to see what can be configured and have a reasonable configuration already in place.
This issue has been automatically marked as stale due to inactivity.
The resources of our volunteers are limited.
Bug reports must provide a script that reproduces the bug, using our template. Feature suggestions must include a promise to build the feature yourself.
Thank you for all your contributions.
We are currently using paper_trail and have billions of items in the versions table and the table is huge.
One of the reasons is that we have
touch: true
in associations and every change in the child record touches parent record and a new version record for this is created.In reality, most (all?) projects do not need to track just this column change, additionally to other columns like
lock_version
.So, I think these should be ignored by default. I propose to not change the library to ignore it, but extend the generator to also generate an initializer file for people to use in their projects and to have these columns ignored in it. Having this initializer will be also easier for users to see what can be configured and have a reasonable configuration already in place.
An alternative library (
audited
) already does this by default https://github.com/collectiveidea/audited/blob/4ffc6c14c4d1692f1ad626f1a4e95d28c968e6bf/lib/audited.rb#L38Wdyt? I can help with the PR.
The text was updated successfully, but these errors were encountered: