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
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.
1
u/RoomyRoots Aug 09 '26
The PostgreSQL service? It's billed per CU, so the more you consume the more you pay.
1
u/Glitch_In_The_Data Oct 27 '26
In Neon, each branch gets its own compute… but you are only billed when that compute is running. With scale to zero turned on, idle environments turns off after a few minutes and costs close to nothing. So it’s the number of branches running at the same time that drives the cost, not how many you have.