Giter VIP home page Giter VIP logo

Comments (6)

mykmelez avatar mykmelez commented on June 3, 2024

Nice catch!

We do currently document the potential for a call to Store::write() to block on an extant Writer (in the Basic Usage example and the Store::write() API reference). However, we don't currently document that Rkv::open_or_create() will also block on an extant Writer, given the details of the underlying implementation. And that'll trip up API consumers. So we should definitely document it (and perhaps research ways to fix or work around the limitation, if it's feasible to do so).

from rkv.

ncloudioj avatar ncloudioj commented on June 3, 2024

This also reminds me that we should also allow a store to be opened in the read_only mode. Doing so allows the consumer to open the store to read while there is an in-flight write transaction on the same store.

This might require some changes in lmdb-rs.

from rkv.

mykmelez avatar mykmelez commented on June 3, 2024

This might require some changes in lmdb-rs.

Indeed. I've not had luck engaging with the lmdb-rs project recently. I have several PRs pending, the first two of which are now two months old. And you've received no response to your issue danburkert/lmdb-rs#33. So I think we're going to need to fork the project and maintain our own fork, at least for the time being, in order to make this and other changes to it.

from rkv.

ncloudioj avatar ncloudioj commented on June 3, 2024

Agreed, let's fork it for now. Its code looks pretty neat and well-organized, should be easy for us to maintain and develop.

from rkv.

mykmelez avatar mykmelez commented on June 3, 2024

Agreed, let's fork it for now. Its code looks pretty neat and well-organized, should be easy for us to maintain and develop.

Ok, I've forked it to https://github.com/mozilla/lmdb-rs/ and added you as a collaborator!

from rkv.

ncloudioj avatar ncloudioj commented on June 3, 2024

Close it via #61

from rkv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.