]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Administration/user-activity-purge.adoc
small typo fix in 2.10 release notes
[working/Evergreen.git] / docs / RELEASE_NOTES_NEXT / Administration / user-activity-purge.adoc
1 Purge User Activity
2 ^^^^^^^^^^^^^^^^^^^
3
4 User activity types are now set to transient by default for new
5 Evergreen installs..  This means only the most recent activity entry per
6 user per activity type is retained in the database.
7
8 This change does not affect existing activity types, which were set to
9 non-transient by default.  To make an activity type transient, modify the
10 'Transient' field of the desired type in the staff client under Admin -> 
11 Server Administration -> User Activity Types.
12
13 Setting an activity type to transient means data for a given user will
14 be cleaned up automatically if and when the user performs the activity
15 in question.  However, administrators can also force an activity
16 cleanup via SQL.  This is useful for ensuring that all old activity
17 data is deleted and for controlling when the cleanup occurs, which 
18 may be useulf on very large actor.usr_activity tables.
19
20 To force clean all activity types:
21
22 [source,sql]
23 ------------------------------------------------------------
24 SELECT actor.purge_usr_activity_by_type(etype.id)
25     FROM config.usr_activity_type etype;
26 ------------------------------------------------------------
27
28 NOTE: This could take hours to run on a very large actor.usr_activity table.
29