The Needs Review Queue Bot β tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- last update
about 1 year ago Build Successful - last update
about 1 year ago Patch Failed to Apply - last update
about 1 year ago Patch Failed to Apply - π―π΄Jordan Anas_maw
This is a very important issue, especially for high-traffic websites.
- π¬π§United Kingdom matason
Hi folks,
I've had a look at the patch and it's pretty much the direction I was going in, I'd start work on it locally before checking the issue queue...
Having reached the same point, I started to think about it bit more... regarding SqlContentEntityStorage, I think it could be a good idea to separate out the read operations from the write options.
I'm thinking SqlContentEntityStorage could become a facade with two underlying objects, a reader and a writer. That way, instead of introducing more execution paths to the code in the class "if we're reading, use a replica, if we're writing, use default", we can just pass the database.replica to the reader, safe in the knowledge that it'll get default if no replica's are configured and pass default through to the writer.
Before I go off and attempt to carve this out, I just thought I'd share the idea to see if sounds sensible to anyone else?
- πΈπͺSweden emek
We have a few high-traffic sites and could use this functionality.