Skip to content
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

DOC DB read-only replicas #587

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz marked this pull request as draft September 16, 2024 08:10
@emteknetnz emteknetnz changed the title DOC DB read-only replicas DB DOC DB read-only replicas Sep 16, 2024
@emteknetnz emteknetnz marked this pull request as ready for review September 16, 2024 08:21
@emteknetnz emteknetnz marked this pull request as draft September 16, 2024 09:50
@emteknetnz emteknetnz force-pushed the pulls/5/db-replica branch 4 times, most recently from 07d3b24 to 3e95db2 Compare September 18, 2024 23:12
@emteknetnz emteknetnz marked this pull request as ready for review September 18, 2024 23:53
en/08_Changelogs/5.4.0.md Outdated Show resolved Hide resolved
en/08_Changelogs/5.4.0.md Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/5/db-replica branch 6 times, most recently from 45647f1 to adb66c3 Compare September 25, 2024 23:21
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emteknetnz emteknetnz force-pushed the pulls/5/db-replica branch 2 times, most recently from e98eeb8 to b286048 Compare September 27, 2024 00:56
@emteknetnz emteknetnz changed the base branch from 5 to 6 September 27, 2024 02:38
@emteknetnz emteknetnz force-pushed the pulls/5/db-replica branch 4 times, most recently from c06669d to 5ac7832 Compare October 3, 2024 04:13
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will merge after all code PRs.


See [read-only database replicas](/developer_guides/performance/read_only_database_replicas/) for more details.

Calling the methods [`DB::get_conn()`](api:SilverStripe\ORM\DB::get_conn()), [`DB::set_conn()`](api:SilverStripe\ORM\DB::set_conn()), [`DB::getConfig()`](api:SilverStripe\ORM\DB::getConfig()), and [`DB::setConfig()`](api:SilverStripe\ORM\DB::setConfig()) using the default `$name` parameter of "default" will now emit a deprecation notice and will be internall converted to "primary". Pass [`DB::CONN_PRIMARY`](api:SilverStripe\ORM\DB::CONN_PRIMARY) or simply "primary" for the `$name` parameter instead. The default value for `$name` will be changed to "primary" in a future major release.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No deprecation notice - looks like these docs may not have been updated to reflect that it's now CMS 6? Don't know how I missed that before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, have changed to mention that "default" has changed to "primary"

@emteknetnz
Copy link
Member Author

Linting issue is unrelated

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me

@GuySartorelli GuySartorelli merged commit 0774f54 into silverstripe:6 Oct 13, 2024
2 of 3 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5/db-replica branch October 13, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants