Skip to content

Commit 785dbbb

Browse files
Update memory-limit.md
1 parent fbb396c commit 785dbbb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

content/operate/rs/databases/memory-performance/memory-limit.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,11 @@ When resharding multiple shards (for example, expanding from 4 to 8 shards), thi
9797
Resharding is an atomic operation that cannot be interrupted. Database corruption can occur if the process fails or stops unexpectedly. Minimizing resharding time reduces this risk.
9898
{{< /note >}}
9999

100-
Flexible sharding optimizes the key trimming stage, significantly reducing the time required to remove unnecessary keys from original shards.
101-
102100
### Resharding duration factors
103101

104-
Resharding duration increases linearly with the number of keys in your database. Flexible sharding, key length, and network traffic affect resharding duration:
105-
106-
Flexible sharding improves resharding duration compared to standard sharding.
107-
108-
Key length directly affects resharding duration. Longer keys require more time to process due to increased hash calculation overhead per key. The decrease in duration provided by flex sharding varies based on key length:
102+
Resharding duration increases linearly with the number of keys in your database. Key length and network traffic affect resharding duration:
109103

110-
- **Short keys (10 bytes)**: Flexible sharding provides up to 50% improvement
111-
- **Long keys (2000 KB)**: Flexible sharding provides minimal improvement (approximately 11%)
112-
- **Critical threshold**: Between 50-100 bytes, flex sharding advantages begin to diminish
104+
Key length directly affects resharding duration. Longer keys (2000 KB) require more time to process due to increased hash calculation overhead per key compared to short keys (10 bytes).
113105

114106
Network traffic has a measurable but limited effect on resharding duration. Since resharding operations typically don't reach CPU limits, the impact on both resharding time and ongoing traffic remains minimal.
115107

0 commit comments

Comments
 (0)