jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.49k stars 338 forks source link

Add command to clear profiling data #137

Open aehlke opened 8 years ago

aehlke commented 8 years ago

It would be great to have a way to sunset old profiling data (whether by simply clearing it or archiving it some way). It's not ideal to clear the entire data set regularly. Ideally this isn't something I need to micromanage manually.

Best could be a line I can throw into a cron that will call a manage.py command to clear records older than N days.

avelis commented 8 years ago

@aehlke Sounds like a decent feature. The management command also seems like a non-intrusive way to build this out.

SebCorbin commented 2 years ago

I'll leave this open, having a clear_profiling_data would be a nice addition but you can also have a look at django-unused-media or django-cleanup