-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: postgresql-dialect
Are you sure you want to change the base?
[Draft] TPC-C Hibernate runner #2544
Conversation
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/HibernateBenchmarkRunner.java
Show resolved
Hide resolved
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/HibernateBenchmarkRunner.java
Outdated
Show resolved
Hide resolved
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/entities/Customer.java
Outdated
Show resolved
Hide resolved
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/entities/District.java
Outdated
Show resolved
Hide resolved
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/HibernateBenchmarkRunner.java
Show resolved
Hide resolved
benchmarks/tpcc/src/main/java/com/google/cloud/pgadapter/tpcc/HibernateBenchmarkRunner.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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"; |
There was a problem hiding this comment.
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 + "'"); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Transaction metrics , Hibernaterunner(v1) implementation