couchbaselabs / couchbaselabs/couchbase-shell

Only connect to nodes as needed

Open
#143 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
87
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Currently as soon as a kv command is run we fetch a config and connect to all nodes. If a user has a large cluster and is doing a simple get then they're going to pay quite a large penalty here (I'm pretty sure we even connect synchronously). We should connect to nodes according to the keys that we see. This is certainly going to cause complications to do it in a performant way - we'll probably need per node queues or something for whilst a connection is happening. Although we can make that a later optimisation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.