event_repository_purge
You can purge the Event Repository using the event_repository_purge standalone application. The application produces output including the collection being examined and when the collection is finished. If the debug option is enabled, more details are included in mtx_debug.log file.
Syntax
event_repository_purge [ -h ] { -i instanceId ] [ -g config-file ] [ -t ] [ -d ] [--timeSlice queryTimeSlice] [--percentUpdate percentUpdateInterval] [--showUnmappedCodes] [--dryrun] [numThreads number-of-threads]
Options
The event_repository_purge standalone app has the following options.
- -h, --help
- Show help about the application options.
- -i, --instance-id instance-id
- The instance ID of the collection. The default is 1.
- -g, --config-file config-file
- The location of the configuration file. The default is ./mtx_config.xml.
- -t, --trace
- Turns on trace logging. The default setting is off.
- -d, --debug
-
Debug flag. If this option is specified, extra messages are printed to help with debugging this application. The default setting is off.
- --timeSlice
-
The query time slice in seconds. The default is 3600.
Note: This option overrides the Purge Query Time in Seconds specified in the create_config.info file. - --percentUpdate
-
The completion percentage interval at which to post status updates. The default is 1 for every 1% change.
Note: This option overrides the Percentage Interval for Purge Status Updates specified in the create_config.info file. - --showUnmappedCodes
-
Shows unmapped deletion codes.
- --dryrun
-
Performs a "dry run" without removing any events or empty collections and updating the Event Repository.
- --numThreads
-
Specifies the number of concurrent MongoDB connections. You can increase this value to allow the task to finish faster by putting more load on the Event Repository. The default is 1.
Note: This option overrides the Number of Purge Query Threads specified in the create_config.info file.