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

Check replica mode for a table before setting it #2029

Closed
balegas opened this issue Nov 22, 2024 · 1 comment
Closed

Check replica mode for a table before setting it #2029

balegas opened this issue Nov 22, 2024 · 1 comment

Comments

@balegas
Copy link
Contributor

balegas commented Nov 22, 2024

When Electric starts a new shape it set the replica mode for that table to FULL. This takes a short exclusive lock on the table, but it is only necessary to set once. So we can reduce the chance of lock by checking the replica mode for the table first to avoid conflicts with long running transactions

@balegas balegas added this to the Production Readiness milestone Nov 22, 2024
@balegas
Copy link
Contributor Author

balegas commented Nov 24, 2024

Closed by #2033

@balegas balegas closed this as completed Nov 24, 2024
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

No branches or pull requests

1 participant