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

Improve Multi perf on SQL state stores with 1 op only #3300

Merged
merged 4 commits into from
Jan 4, 2024

Commits on Jan 2, 2024

  1. Improve Multi perf on SQL state stores with 1 op only

    When Multi is invoked with a single operation, on SQL state stores (Postgres v1/v2, CockroachDB, MySQL, SQLite, MS SQL Server) we can omit starting a transaction, as a single operation is going to be executed atomically regardless. This allows reducing the number of round-trips to the DB from 3 to 1, reduces locks used inside the DB server, and improves overall performance.
    
    Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
    ItalyPaleAle committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    0798594 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Update common/component/postgresql/v1/postgresql.go

    Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
    ItalyPaleAle committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    c22622b View commit details
    Browse the repository at this point in the history
  2. Update state/postgresql/v2/postgresql.go

    Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
    ItalyPaleAle committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    7cf1953 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f33d5ee View commit details
    Browse the repository at this point in the history