Skip to content

Commit d82d90d

Browse files
committed
Apply more review comments
1 parent 80a37fa commit d82d90d

File tree

1 file changed

+1
-3
lines changed
  • content/develop/data-types/json

1 file changed

+1
-3
lines changed

content/develop/data-types/json/ram.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,4 @@ or across different documents on the same node, Redis stores only a single copy
131131
This approach is especially efficient when many documents share similar structures.
132132

133133
However, the `JSON.DEBUG MEMORY` command reports memory usage as if each string instance is stored independently, even when it's actually reused.
134-
For example, the document `{"foo": ["foo", "foo"]}` reuses the string `"foo"` internally, but the reported memory usage counts the string three times: once for the key and once for each array element.
135-
136-
Because the string cache is global and unaware of keys, documents, or shards, the reported per-key memory usage might overstate actual consumption, particularly when repeated strings are present.
134+
For example, the document `{"foo": ["foo", "foo"]}` reuses the string `"foo"` internally, but the reported memory usage counts the string three times: once for the key and once for each array element.

0 commit comments

Comments
 (0)