Skip to content

Document read replication and transaction behaviour#574

Open
Rochet2 wants to merge 4 commits into
sequelize:mainfrom
Rochet2:patch-1
Open

Document read replication and transaction behaviour#574
Rochet2 wants to merge 4 commits into
sequelize:mainfrom
Rochet2:patch-1

Conversation

@Rochet2
Copy link
Copy Markdown

@Rochet2 Rochet2 commented Sep 6, 2023

It appears that there is no documentation that I could find on read replication and how useMaster is not needed for select queries in a transaction for consistency. This PR should document the default behaviour of SELECT queries in a transaction when using read replication.

In V7 there will be a new setting for transactions to allow going to read pool only.
It could also be mentioned here maybe?

I also wonder (have not tested) what happens if one explicitly sets useMaster true/false inside a transaction.
Maybe something to document as well.

@Rochet2 Rochet2 requested a review from a team as a code owner April 11, 2024 20:16
@Rochet2 Rochet2 requested review from WikiRik and ephys April 11, 2024 20:16
@ephys ephys requested a review from Copilot April 5, 2026 15:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the read replication documentation to clarify how pool selection behaves when running queries inside transactions.

Changes:

  • Clarifies that transactional reads/writes default to using the write pool.
  • Adjusts the existing description of how useMaster and SELECT interact with replication pools.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/other-topics/read-replication.md Outdated
Comment thread docs/other-topics/read-replication.md Outdated
Rochet2 and others added 2 commits June 3, 2026 02:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants