Prolonged high CPU usage when the net tables grow too big
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
No files, tests, or entry points are named; first locate the in-memory request queue and its producer and consumer path. Define the bounded-queue behavior and warning or error handling, then verify producers are handled when capacity is exhausted without spilling to disk.
Written by the indexing model from the issue text.
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.
- Dominant language
- Python
- Stars
- 371
- Forks
- 43
- Avg merge
- 22h 33m
- Merged PRs (30d)
- 10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/pg_net
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
idea
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100