Skip to content

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?

# 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

3 participants