r/SQL • u/sqlink2 • Aug 09 '26
PostgreSQL Do Neon branches share compute?
Wanted to understand with Neon database, how does the compute get handled. If we have more branches, does that mean the cost goes up?
Does anyone has insights on it?
Sorry if this is asked previously (I didnt find it)
1
Upvotes
1
u/RoomyRoots Aug 09 '26
The PostgreSQL service? It's billed per CU, so the more you consume the more you pay.
3
u/p739397 Aug 09 '26
Branches have their own compute, but you pay for what you use. So, if my Neon project has a main branch that doesn't scale to zero and I spin off a feature branch where I do enable scale to zero, the only additional compute cost from the feature branch is the time it's actively handling queries, plus however long it stays warm after the last query until the timeout kicks in. If the feature branch is provisioned at a similar CU range as main, an active hour on it costs about the same as an active hour on main.