PgBenchmarkTransactionMode
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Selects the PostgreSQL transaction boundary applied while measuring a benchmark.
public enum PgBenchmarkTransactionModeFields
Section titled “Fields”RollbackPerBatch
Section titled “RollbackPerBatch”Runs each measured batch in its own internal subtransaction and rolls it back, so a benchmark that changes data starts every batch from the same state. The rollback is part of the measured time.
RollbackPerBatch = 3RollbackPerIteration
Section titled “RollbackPerIteration”Runs every measured iteration in its own internal subtransaction and rolls it back, so a benchmark that changes data starts every iteration from the same state. The rollback is part of the measured time.
RollbackPerIteration = 4Shared
Section titled “Shared”Runs every measured iteration in the caller’s transaction.
Shared = 0SubtransactionPerBatch
Section titled “SubtransactionPerBatch”Runs each measured batch in its own internal subtransaction.
SubtransactionPerBatch = 1SubtransactionPerIteration
Section titled “SubtransactionPerIteration”Runs every measured iteration in its own internal subtransaction.
SubtransactionPerIteration = 2