jammdb icon indicating copy to clipboard operation
jammdb copied to clipboard

database Design

Open Godones opened this issue 2 years ago • 6 comments

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.

Godones avatar Dec 10 '22 12:12 Godones

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?

pjtatlow avatar Dec 13 '22 21:12 pjtatlow

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 avatar Dec 17 '22 14:12 Godones

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.

Godones avatar Dec 17 '22 14:12 Godones

@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.

pjtatlow avatar Jan 15 '23 03:01 pjtatlow

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

Godones avatar Jan 16 '23 15:01 Godones