Cache session/[{cursor, config}] for reuse and spawn threads when needed. #9

Merged
gburd merged 30 commits from gsb-ctx-cache into master 2013-07-03 12:31:15 +00:00
gburd commented 2013-07-03 12:29:47 +00:00 (Migrated from github.com)

This set of changes tries to balance workload against the cost of reusable resources within WiredTiger. Using too many threads or having too many open sessions or cursors can cause slowdowns in WiredTiger, using too few can bottleneck the Erlang side of the equation. In this set of changes I try to limit resource without impacting performance and reuse resources rather than re-creating them when possible.

Also, the notion of a "context" (wterl_ctx) should make it easier to integrate transactions which I'd like to use when adding 2i support to the riak_kv_wterl_backend driver.

This set of changes tries to balance workload against the cost of reusable resources within WiredTiger. Using too many threads or having too many open sessions or cursors can cause slowdowns in WiredTiger, using too few can bottleneck the Erlang side of the equation. In this set of changes I try to limit resource without impacting performance and reuse resources rather than re-creating them when possible. Also, the notion of a "context" (wterl_ctx) should make it easier to integrate transactions which I'd like to use when adding 2i support to the riak_kv_wterl_backend driver.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/wterl#9
No description provided.