influxdb: [bug] drop/delete terribly slow
Bug report
Influx version: v1.5.1 OS version: Ubuntu Linux 17.04
Steps to reproduce:
- Have a big database with > 20000 series
- Try to execute
drop series from /{{regexp_pattern}}/. - or try to execute
drop measurement /{{regexp_pattern}}/. - or try to execute
delete from /{{regexp_pattern}}/.
It will take > 30 minutes.
Expected behavior:
- Well deleting data should take miliseconds?
- Or there should be some special command modifier that will do it fast (I think this is becaus esome influx DB cleaning stuff). And there should be another comment to execute this “long” part manually, so for example I can delete ton of series and run cleanup process manually (to reclaim space) from a cron job or something like this.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 6
- Comments: 41 (14 by maintainers)
We’ve replaced influx with PostgreSQL and delete is instant. Postgres (which is a surprise for me) is faster not only in delete operation, but in all operations basically.
Wow, over 3 years passed since I’ve reported this and it’s not fixed…