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

Potential durable state performance improvements #593

Open
johanandren opened this issue Sep 17, 2021 · 1 comment
Open

Potential durable state performance improvements #593

johanandren opened this issue Sep 17, 2021 · 1 comment

Comments

@johanandren
Copy link
Member

The durable state has a two-step operation when updating the state, first picking up a new global unique seq number and then the actual insert/update (see JdbcDurableStateStore. I think we could, at least for some of the databases, fold that into a single insert/update referencing the sequence number generator.

Could also be worth making that update into a prepared statement rather than an ad hoc statement for each insert/update.

@patriknw
Copy link
Member

Sounds like a good improvement.

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

No branches or pull requests

2 participants