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

How do you persist a BTree on disk? #145

Closed
hosseinmoein opened this issue Oct 27, 2020 · 4 comments
Closed

How do you persist a BTree on disk? #145

hosseinmoein opened this issue Oct 27, 2020 · 4 comments

Comments

@hosseinmoein
Copy link

hosseinmoein commented Oct 27, 2020

Sorry if this question is already answered. But how do you persist/retrieve a BTree to/from disk? Can it be memory-mapped and brought in partially to memory?

Regards,
HM

@d-maurer
Copy link
Contributor

d-maurer commented Oct 27, 2020 via email

@jamadden
Copy link
Member

jamadden commented Oct 27, 2020

Except that pickling large BTrees does not actually work outside a system like ZODB. You get stack overflow errors if you try. I’m sure I opened an issue about that before. (Edit : #44)

@hosseinmoein
Copy link
Author

ok, I was under the impression that BTree itself has persistence mechanism. I don't like pickle, but will look into it
thanks

@mgedmin
Copy link
Member

mgedmin commented Oct 28, 2020

BTrees is part of a persistence mechanism called ZODB. ZODB happens to be based on pickles.

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

4 participants