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

Sequelize should be able to create transactions on read replica #7323

xkjyeah opened this Issue Mar 3, 2017 · 0 comments


2 participants

xkjyeah commented Mar 3, 2017

What you are doing?

sequelize(..., {
    replication: {
        read: [REPLICA],
        write: PRIMARY

sequelize.transaction(() => {
    /* Read-only stuff here that requires repeatable reads */

What do you expect to happen?

The transaction should execute on the read replica.

What is actually happening?

It executes on the write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment