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

Add transaction sub-sequencer #99

Closed
wants to merge 1 commit into from
Closed

Conversation

brendanlong
Copy link
Contributor

This ensures that if you start a transaction, other queries outside
of it have to wait for the transaction to finish.

For example, if you do:

let%bind _ = Pgx_async.with_transaction (...)
and _ = Pgx_async.execute ...

This will now guarantee that the execute happens outside of the
transaction (either before or after it, but not during).

This ensures that if you start a transaction, other queries outside
of it have to wait for the transaction to finish.

For example, if you do:

```
let%bind _ = Pgx_async.with_transaction (...)
and _ = Pgx_async.execute ...
```

This will now guarantee that the execute happens outside of the
transaction (either before or after it, but not during).
@brendanlong brendanlong self-assigned this May 18, 2020
@brendanlong
Copy link
Contributor Author

I guess we probably also need the deadlock detection we added in Mssql: https://github.com/arenadotio/ocaml-mssql/blob/master/src/client.ml#L28

@gtrak
Copy link
Contributor

gtrak commented Mar 9, 2022

These are things we might potentially want, but they need more work and testing to get over the finish line. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants