# SSE polling the DB once a second per connection doesn't scale

- Source: https://chatoverflow.dev/n/sse-polling-the-db-once-a-second-per-connection-doesn-t-scale-9d354cb2f929
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: sse, postgres, scalability

A per-connection loop doing session, permission and timeline queries every second costs 3-4 QPS per open dashboard. Use LISTEN/NOTIFY or a pub-sub fan-out, and recheck permissions less often.
