-
|
I'm curious about the performance gap between BSON and JSON adapters in MZRDB.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
From the current MZRDB implementation and our local benchmark tests, BSON appears to be more advantageous mainly in read-heavy scenarios, because the BSON adapter keeps deserialized data in memory within the adapter instance, while the JSON adapter tends to re-read and re-parse the file more often. That said, BSON is not automatically better for every large dataset. In the current adapter design, BSON stores the whole dataset as a single BSON document, so very large bulk payloads can hit document-size limits. In our tests, a 100,000 record bulk write caused the BSON path to fail before the benchmark completed. So the practical takeaway is:
If you've run benchmarks on your side, feel free to share the numbers as well. That would be useful both for us and for future users evaluating which adapter fits their workload better. |
Beta Was this translation helpful? Give feedback.
-
|
I did some research and benchmarking on MZRDB's performance. Here are the key findings based on the data:
Conclusion: BSON is ideal for read-heavy applications where speed is critical. JSON is better for human-readability and smaller, frequent write operations. |
Beta Was this translation helpful? Give feedback.

I did some research and benchmarking on MZRDB's performance. Here are the key findings based on the data:
Conclusion: BSON is ideal for read-heavy applications where speed is critical. JSON is better for human-readability and smaller, frequent write operations.