How many Connections can I make with your database?
I'm making a discord bot. I want to connect to same database using Python
asyncpg 2 times11 Replies
ambitious-aquaOP•2y ago
1 -> Main bot connected to Database
2 -> Other bot connected to Database
so that both can access the data
.
@Daniel
multiple-amethyst•2y ago
Hey @AnnoMy. There's a table here that shows the max concurrent connection limit per compute size. https://neon.tech/docs/manage/endpoints#how-to-size-your-compute Unless I'm missing something, multiple connections to the same database should not be an issue.
Neon
Manage computes - Neon Docs
A single read write compute endpoint is created for your project's primary branch, by default. To connect to a database that resides in a branch, you must connect via a compute endpoint associated wit...
ambitious-aquaOP•2y ago
Okay.
Why my both dbs occupy 7MiB of storage where as I only have 2 tables with 0 rows
@Conrad Ludgate
exotic-emerald•2y ago
That seems expected to me. Is this an issue?
ambitious-aquaOP•2y ago
Not but it occupies my space
ambitious-aquaOP•2y ago
I doesn't interrupt but occupies my space
How can this be fixed
ambitious-aquaOP•2y ago
BTW. Each db is occupying 7MiB, in total 14MiB
https://cdn.discordapp.com/attachments/1089092731911024691/1224727776674713670/image.png?ex=661e8ba0&is=660c16a0&hm=b1b18e991b647c9fe1a3f600690492c957231532e1494be3515c9cd4bffba461&
https://cdn.discordapp.com/attachments/1089092731911024691/1224727813878321273/image.png?ex=661e8ba9&is=660c16a9&hm=fda7c7c26dd508c0e6e0f76cc2b89c4fcbf604f2341d29dc3453a83addcef908&
exotic-emerald•2y ago
Hey @ShinyPokemon , can you help out here?
fair-rose•2y ago
@AnnoMy. by default Postgres uses some storage for it's initial footprint. For example a Postgres running on my laptop already uses similar storage to your nendb:
We also have history retention enabled (https://neon.tech/docs/introduction/point-in-time-restore#history-retention) which uses up storage too. If you don't need point-in-time-restore you can disable history retention to reduce storage consumption.
Neon
Branch reset and restore - Neon Docs
Neon retains a history of changes for all branches. This shared history provides the basis for a variety of branch restore and reset operations resetting a branch to its parent, restoring a branch to ...
ambitious-aquaOP•2y ago
Okay thank you.