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

database Design #15

Open
Godones opened this issue Dec 10, 2022 · 6 comments
Open

database Design #15

Godones opened this issue Dec 10, 2022 · 6 comments

Comments

@Godones
Copy link

Godones commented Dec 10, 2022

Is there a project design document? Or a description of the database structure design? I want to do something interesting with your implementation, so I need more details.

@pjtatlow
Copy link
Owner

Hey @Godones, I don't have a design doc for it since I didn't come up with the design myself and jammdb is a Rust port of boltdb. I did find this article that's describes boltdb really well, and is still very accurate for jammdb if you want to take a look though!

Out of curiosity, can you share what your idea is that you want to use jammdb for?

@Godones
Copy link
Author

Godones commented Dec 17, 2022

Thanks for your help @pjtatlow , I learned about the related design through boltdb, I am trying to use a database to build a file system project, I need to make some changes to jammdb's dependencies to complete the task.

@Godones
Copy link
Author

Godones commented Dec 17, 2022

I have encountered some problems during use. When I run the test, a crash may occur. The location of the crash should come from the two tests of tests/deletes/medium_deletes|large_deletes. When I run medium_deletes alone, there is a high probability that it will An error occurred, but the error message is not always the same.The most recent error message is thread 'main' panicked at 'THIS IS VERY VERY BAD', src/node.rs:327:26 or thread 'main' panicked at 'called Option::unwrap() on a None value', src/bucket.rs:739:9. Because I haven't fully understood the code, I can't determine the specific cause of the bug。

I reproduce this bug in wsl2, rustc 1.66.0-nightly.

@pjtatlow
Copy link
Owner

@Godones I've just released 0.8.0, which should resolve your issues. Can you test it out and let me know if you're still running into issues? I'm also planning on writing some blog posts about the design, so I'll leave this issue open until I get that done.

@Godones
Copy link
Author

Godones commented Jan 16, 2023

@pjtatlow Thank you, I ran the tests without issue. I am very much looking forward to the blog post about jammdb

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

3 participants
@pjtatlow @Godones and others