Yes all of these are a database not schema.
Thank you for response.

Mike Bayer <mike...@zzzcomputing.com>, 22 Mar 2022 Sal, 18:27 tarihinde
şunu yazdı:

> a single Engine only points to one database URL at a time.   so to that
> extent, as an Engine assumes there's a "default database" when it connects,
> any concept of multiple "databases" beneath that is not something the
> Engine is aware of.
>
> PostgreSQL itself has no "USE" command, so if you have a connection to a
> PostgreSQL database, that's the one you're talking to, so given this
> architecture you would definitely need to create an individual Engine per
> database.
>
> OTOH if these are actually PostgreSQL **schemas** and not databases, that
> would be something entirely different, but you haven't specified this.
>
>
>
> On Tue, Mar 22, 2022, at 10:26 AM, Mustafa Demiraslan wrote:
>
> Current structure is like this:
>
> [image: image.png]
>
> I can't manage pooling for green colored databases.
>
>
> Mike Bayer <mike...@zzzcomputing.com>, 22 Mar 2022 Sal, 17:12 tarihinde
> şunu yazdı:
>
>
> for one engine with 18 databases, what is "switching the bindings"  ?  do
> you mean you call "USE <database>" on the connection ?
>
> creating 18 separate engines would not be that big a deal if that's what
> works best for the code, no issue doing that.
>
> On Tue, Mar 22, 2022, at 9:41 AM, Mustafa Demiraslan wrote:
>
> Hi team,
> I am using 3 database engines at the same time, 1(include 1 database) +
> 1(include 1 database) + 1(include 18 database). I use the database
> containing 18 databases by switching the bindings. I connect to database
> using sessions with session_maker for each engine. During the load test, I
> am stuck on the max_connection limit for the part containing 18 databases.
> Do you think the right approach is to create a separate engine for each
> database(1+1+18 engine) or is it a single engine multiple binding? I would
> be very happy if you express your thoughts.
>
> Regards,
> Mustafa
>
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sqlalchemy/f196963c-9a0b-4359-b972-27010dfdcaden%40googlegroups.com
> <https://groups.google.com/d/msgid/sqlalchemy/f196963c-9a0b-4359-b972-27010dfdcaden%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sqlalchemy/97a1ad3f-2752-4fc4-9997-fcefff3b4589%40www.fastmail.com
> <https://groups.google.com/d/msgid/sqlalchemy/97a1ad3f-2752-4fc4-9997-fcefff3b4589%40www.fastmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sqlalchemy/CAM%2BjLs8-po%3DoFJyv1vFKionj8nuMpUU2DQm7AvkHTOEYUbi1QQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/sqlalchemy/CAM%2BjLs8-po%3DoFJyv1vFKionj8nuMpUU2DQm7AvkHTOEYUbi1QQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sqlalchemy/bddd27ef-3c59-4b24-b3f3-e42b0876886c%40www.fastmail.com
> <https://groups.google.com/d/msgid/sqlalchemy/bddd27ef-3c59-4b24-b3f3-e42b0876886c%40www.fastmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/CAM%2BjLs9JmY2yV87avga4WJ1piY3V-Y0DwpFEcf7HVQ-atVd5zQ%40mail.gmail.com.

Reply via email to