Accessing different instances through #2218
sivag-csod
started this conversation in
General
Replies: 1 comment
-
Yes, each Sequel database has its own independent thread-safe connection pool, and its general thread-safety isn't compromised when there are multiple database instances. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My client wants to separate their data into separate instances. So our current code bases using Active record which we are unable to support. So we are thinking to move to sequel. So we tried that using following snippet and it worked. So my question is does sequel provide thread safety for each db instance if we are trying to access different DBs using raw queries instead models. My client data exists data both in mysql and postgres as well.
is there better way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions