Skip to content

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

@xkjyeah

Description

@xkjyeah

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureDEPRECATED: replace with the "feature" issue type

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions