-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Problem
There was a case where a user imported data causing millions of rows to be inserted into a table that had webhooks enabled. This caused high CPU usage for a prolonged period of time.
Proposal
With an in-memory queue, it's possible to bound it to a certain size. Once this size is surpassed, we could:
- Block the producers of http requests, until there's more capacity in the queue.
- Log an ERROR or WARNING.
Note
Spill over to disk is not an option (inserting into another table), as it would make the usage more complex.
riderx and ianarchivo