Skip to content

Improve the threading model of TPC-C #42

Open
@psudheer21

Description

TPC-C spec allows us to have. maximum of 10 terminals per warehouse. Currently for every terminal created we create a separate thread. This is fine with smaller number of warehouses but even with 1000 warehoues we create about 10k threads. Increasing the warehouses beyond that with one client is unreasonable.

Change the threading model such that:

  1. We have as many threads as the number of DB connections used.
  2. Each terminal is just a state that runs on the threads when they are ready to be executed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions