-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ORM to support offloading read-only queries to another database #11352
Comments
This was referenced Sep 12, 2024
PRs merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to introduce support for application environments that use multiple databases for performance objectives, by developing support for the ORM to offload read-only queries to an alternate database to allow developers or vendors with platforms/infrastructure for Silverstripe CMS to alleviate load on a primary write database and improve scalability and performance of the overall database system
Related issues
Notes
replicas
config and their old master/slave setup. We should probably aim to do the same, for maximum flexibility and scalability.write
database for all queries going forward in the current request cycle after a write operation has been performed. This solves the issue of needing to read something after writing straight away. It may make sense for us to do something similar, possibly just have it permanently on and not allow configuring it off as there's probably a million ways something could get out of sync and break. There may however be some scenarios where the database is being written to on every request e.g. custom logging which would disable using the replicasAcceptance criteria
Kitchen sink CI
PRs
The text was updated successfully, but these errors were encountered: