-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json: properly report capacity of encoded jsons
Previously, jsonEncoded structs reported their memory size as including the underlying capacity of their encoded byte slices. This was incorrect, as usually that underlying slice is an entire kv batch. This problem led to significant overcounting of the memory used by queries that read JSON data from disk, which resulted in spurious BudgetExceededErrors. Release note (bug fix): prevent spurious BudgetExceededErrors for some queries that read a lot of JSON data from disk. Co-authored-by: Alfonso Subiotto Marqués <alfonso@cockroachlabs.com>
- Loading branch information
1 parent
793f4a5
commit 23280f4
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters