Skip to content

Commit 108a9a6

Browse files
committed
DEV: (MOD-9575) memory reporting updates
1 parent 8de3102 commit 108a9a6

File tree

2 files changed

+8
-0
lines changed
  • content

2 files changed

+8
-0
lines changed

content/commands/json.debug-memory/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ title: JSON.DEBUG MEMORY
3535
---
3636
Report a value's memory usage in bytes
3737

38+
{{< warning >}}
39+
The actual total memory consumption could be much lower than the reported value because of an internal JSON references mechanism.
40+
{{< /warning >}}
41+
3842
[Examples](#examples)
3943

4044
## Required arguments

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ weight: 6
1919
Because of ongoing feature additions, improvements, and optimizations, JSON memory consumption may vary depending on the Redis version.
2020
Redis 8 in Redis Open Source was used for the examples on this page.
2121
{{< /note >}}
22+
<br />
23+
{{< warning >}}
24+
The actual total memory consumption could be much lower than the reported value because of an internal JSON references mechanism.
25+
{{< /warning >}}
2226

2327
Every key in Redis takes memory and requires at least the amount of RAM to store the key name, as
2428
well as some per-key overhead that Redis uses. On top of that, the value in the key also requires

0 commit comments

Comments
 (0)