-
Notifications
You must be signed in to change notification settings - Fork 1
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
Getting LMDB-backed version to a working state #1
Comments
I'm not familiar with the concept "reference hydration" - can you elaborate? |
I believe the term "hydration" originated in Hibernate as a name for a process of populating object's fields with the query results. It became commonly used in other contexts as a synonym to deserialization into objects/entities. So didn't mean anything fancy :) Just loading the referenced entities. Thanks for the answers, I'll think a bit about possible solutions given that we want to:
|
Sounds good. |
I was just curious to know how things are going? Do you need any help? |
Hello!
I was looking at the current master and it looks very promising. The only part that is missing is hydrating the references when an entity is pulled from the database. I would like to complete the implementation. What follows is a couple of questions I came up with after an ~hour of reading the code:
primary
database is storing the entities. Purpose of thesecondary
database is not very clear. I've looked up the implementation for Graphene-0.3.3 and the secondary database there was driven by the Berkeley DB implementation. It had the secondary indices for all of the properties of the entity. Was there a plan to use thesecondary
LMDB database for secondary indices too? I understand it would also need to store the references between the entities - or would that be atertiary
DB?.Graphene::get
are identical. Not sure if that's a design goal though. If we wanted to support lazily loaded references, for example, we'd need to embed thereference
DB in the entity. However, I don't really like the concept as funny things will happen if you access the entity outside of a read transaction. Was there a certain semantics that you had in mind regarding the reference hydration?The text was updated successfully, but these errors were encountered: