Any plan to support the JSON in kvrocks? #1164
Replies: 4 comments 11 replies
-
Hi @simplechen. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I see that there is a standardized JSON in the 3.0 plan, and I am looking forward to it |
Beta Was this translation helpful? Give feedback.
-
I think if you need to store json strings, consider using lua scripts instead, as cjson codec support is available in lua vm |
Beta Was this translation helpful? Give feedback.
-
RedisJSONType SystemComplex Types:
Basic Types:
Bottom Type:
FormatStorageJust stores "Raw IJSON" values for json. It's a cbor-like typed json binary format. When stored in rdb, the "Raw IJSON" format would be cast to "JSON Text". Memory
CommandsCommands are Listed below: Path
Kvrocks DesignMethod 1: Integrate or Reuse RedisJSONRedisJson can not be well-optimized if "string" representation is used. Instead, we should pay some efforts to re-implement the old Legact Path Syntax. If we just reuse RedisJSON, we can:
Pros:
Cons:
Method 2: Re-implement JSON in kvrocksRe-implement JSON in kvrocks is not hard, we need to consider the case below:
Thirdparty libraries
Storage FormatRaw Text DataPros:
Cons:
CborPros:
Cons:
JsonbPros:
Cons:
In-memory format
Corner casesHuge JSON ValueIf the json value is small, using all kinds of data is OK, if json value is huge, we need to consider that:
Pros:
Cons:
References
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As the title
Beta Was this translation helpful? Give feedback.
All reactions