© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
1 reply
Rom1gar

net._http_response query consume 97% of time...

Hello, In the query performance report this query takes 97% of time consumption :
with
  rows as (
    select
      ctid
    from
      net._http_response
    where
      created < now() - $1
    order by
      created
    limit
      $2
  )
delete from net._http_response r using rows
where
  r.ctid = rows.ctid
with
  rows as (
    select
      ctid
    from
      net._http_response
    where
      created < now() - $1
    order by
      created
    limit
      $2
  )
delete from net._http_response r using rows
where
  r.ctid = rows.ctid



I see that it a query who cleanning the net._http_response table.
Why does this query consume so many resources? And can it be optimized?

Thanks for your help !
Capture_decran_2025-09-04_181700.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

My net._http_response table is taking up 500 MB of Database Size
SupabaseSSupabase / help-and-questions
13mo ago
(pg_net) net._http_response has no records when I make a request.
SupabaseSSupabase / help-and-questions
8mo ago
net.http_post permission denied in trigger
SupabaseSSupabase / help-and-questions
4y ago
Change http.timeout_msec for pgsql_http
SupabaseSSupabase / help-and-questions
4y ago