Skip to content

Commit

Permalink
reverted modifications for benchmarking.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryogrid committed Oct 10, 2023
1 parent 775caa6 commit 04676f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var LogTimeout time.Duration
const EnableDebug bool = false //true

// use virtual storage or not
const EnableOnMemStorage = false //true
const EnableOnMemStorage = true

// when this is true, virtual storage use is suppressed
// for test case which can't work with virtual storage
Expand Down
6 changes: 3 additions & 3 deletions samehada/samehada.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ func NewSamehadaDB(dbName string, memKBytes int) *SamehadaDB {
shi.bpm.FlushAllPages()
shi.transaction_manager.Commit(c, txn)

//shi.GetLogManager().ActivateLogging()
shi.GetLogManager().ActivateLogging()

exec_engine := &executors.ExecutionEngine{}
//pnner := planner.NewSimplePlanner(c, shi.GetBufferPoolManager())

//chkpntMgr := concurrency.NewCheckpointManager(shi.GetTransactionManager(), shi.GetLogManager(), shi.GetBufferPoolManager())
//chkpntMgr.StartCheckpointTh()
//shi.GetCheckpointManager().StartCheckpointTh()
shi.GetCheckpointManager().StartCheckpointTh()

// statics data is updated periodically by this thread with full scan of all tables
// this may be not good implementation of statistics, but it is enough for now...
statUpdater := concurrency.NewStatisticsUpdater(shi.GetTransactionManager(), c)
//statUpdater.StartStaticsUpdaterTh()
statUpdater.StartStaticsUpdaterTh()

return &SamehadaDB{shi, c, exec_engine, statUpdater}
}
Expand Down

0 comments on commit 04676f7

Please sign in to comment.