Persist some statistics in database
It should be RGPD compliant (aka anonymous enough). For example, storing the number of matches per Rule per second could be sufficient:
- Time (max precision: seconds)
- Rule matched
- Count Note that this will force Rules (and Release) to be persisted even after their "deletion". This means:
- it will be impossible for rules and releases to be completely deleted if a record references them
- "delete" should be replaced with an "archive" system for Rules and Releases