Closed rhyslbw closed 8 years ago
Also we should really push the default to at least 20 IMO. 10 seems a little aggressive
Ok, I misunderstood what was happening here. This is not required as there will only ever be one snapshot since we updating rather than inserting. Right on! Given this is the case, 10 seems alright
I'd like to get opinions on the idea of purging snapshots, controlled by the ES module, work performed in the Space.JobQueue as an option.We only need the last one for each aggregate all others are just redundant weight in the database, however a configurable capped value comes to mind to allow tuning to what makes sense based on the project + env requirements.Note: I can see that just a cron would also suite some scenarios too, although that's a separate concern and I can be implemented without Space, although an api could help with getting a list of all Aggregate types.(see comment below)