Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trace_analysis: bson: InvalidDocumentKey(Int32(500)) #5

Closed
jayvdb opened this issue Jun 4, 2024 · 2 comments
Closed

trace_analysis: bson: InvalidDocumentKey(Int32(500)) #5

jayvdb opened this issue Jun 4, 2024 · 2 comments

Comments

@jayvdb
Copy link

jayvdb commented Jun 4, 2024

After getting past #3, I see

thread 'main' panicked at src/stats/file/bson.rs:17:61:
called `Result::unwrap()` on an `Err` value: InvalidDocumentKey(Int32(500))

Using -o json works.

@jayvdb jayvdb changed the title trace_analysis: InvalidDocumentKey(Int32(500)) trace_analysis: bson: InvalidDocumentKey(Int32(500)) Jun 4, 2024
@cvkem
Copy link
Owner

cvkem commented Jun 6, 2024

I have added bincode and json and used them a lot. However, bincode does not guarantee that the binary format is stable across Rust-compiler versions, so it is not suited for longer term storage. Json is slower to process, and results in large files.
For that reason I investigated bson, but that did not provide sufficient benefits, so therefore I switched back to json.
I consider to remove the bson option for that reason as others also run into issues with it.

@cvkem cvkem closed this as completed Jun 6, 2024
@jayvdb
Copy link
Author

jayvdb commented Jun 6, 2024

no worries ; we're happy to use json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants