Code Monkey home page Code Monkey logo

Comments (3)

siddhsql avatar siddhsql commented on June 12, 2024

http://www.lmdb.tech/doc/group__mdb.html#gaa2506ec8dab3d969b0e609cd82e619e5

from lmdbjava.

wardle avatar wardle commented on June 12, 2024

I'm not the author of lmdb or lmdbjava but here are my thoughts.

It's a function of how lmdb works.

For many use cases this is not an issue at all. The size sets the memory map size and uses a sparse file so it doesn't take up as much space as you set, only that you use.

If it's an issue (it isn't for my use cases) you can detect when size goes above a certain threshold and copy/create a new larger file based db. Others use rolling databases for time series data or use for archival / immutable data.

from lmdbjava.

benalexau avatar benalexau commented on June 12, 2024

If it's an issue (it isn't for my use cases) you can detect when size goes above a certain threshold and copy/create a new larger file based db.

You just need to re-open the database with larger settings if required. I've never encountered it as an issue in practical situations. My larger workloads have a "data collection" phase where it's basically random writes, then an end of day write of the database so the keys are in perfect order. That reduces the size of the long-term file as well.

from lmdbjava.

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.