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

[Draft] TPC-C Hibernate runner #2544

Draft
wants to merge 22 commits into
base: postgresql-dialect
Choose a base branch
from

Conversation

rayudu3745
Copy link
Collaborator

Transaction metrics , Hibernaterunner(v1) implementation

@rayudu3745 rayudu3745 requested a review from olavloite November 20, 2024 09:48
@rayudu3745 rayudu3745 requested a review from hengfengli December 4, 2024 02:40
Copy link
Collaborator

@hengfengli hengfengli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please also add instructions how to run the Hibernate runner in https://github.com/GoogleCloudPlatform/pgadapter/tree/postgresql-dialect/benchmarks/tpcc.

static final String ROUNDTRIP_LATENCY_DESCRIPTION =
"Latency when the benchmark runner sends out a query and gets a response";

static final String TPCC_NEWORDER_LATENCY = "spanner/benchmarker/tpcc_neworder_latencies";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we considered to add only one metric, e.g., spanner/benchmarker/tpcc_transaction_latencies and use a field in the Attributes to indicate the transaction type?

conn.setReadOnly(false);
conn.createStatement().execute("set auto_batch_dml=true");
conn.createStatement().execute("set auto_batch_dml_update_count_verification=false");
//conn.createStatement().execute("set transaction_tag='" + transactionTag + "'");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public class SessionHelper {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be more specific to Hibernate session, e.g., HibernateSessionHelper?

pgadapter.num-channels=32

# Set this if you want the in-process PGAdapter instance to use a specific service account
# credentials file.
# Leave unset if the application should use the APPLICATION_DEFAULT_CREDENTIALS.
pgadapter.credentials=/path/to/credentials.json
pgadapter.credentials=/Users/rayudualp/Downloads/span-cloud-testing-5084c5e7353d.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should not update this file except adding the hibernate settings below.

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

Successfully merging this pull request may close these issues.

3 participants