[Bug]: Slow drop index on hypertable #7608
Labels
enhancement
An enhancement to an existing feature for functionality
performance
tech-debt
Needs refactoring and improvement tasks related to the source code and its architecture.
What type of bug is this?
Performance issue
What subsystems and features are affected?
Command processing
What happened?
Hello,
We have a big database with many hypertables (200K). We noticed dropping an index is slow due to event trigger processing, around 1s/index.
It seems timescaledb scan several times the catalog in the event trigger.
We have many indexes to remove (more than 100K).
Is there any way to avoid this overhead?
Thanks
TimescaleDB version affected
2.17.1
PostgreSQL version used
14.15
What operating system did you use?
Red Hat Enterprise Linux release 9.5 (Plow)
What installation method did you use?
Source
What platform did you run on?
Amazon Web Services (AWS)
Relevant log output and stack trace
Here is a perf top -p -g of the relevant backend :
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: