Skip to content

Support memory open mode (was: More DB open methods possible?) #256

Description

@ezelkow1

It would be good if there were other methods available to open besides mmap'ing a file. We have integrated this into apache trafficserver (and I know other projects use it) but since the only way to load a db file is via mmap then that means you cant have any other automated tooling update databases on disk without synchronizing the rest of the system (and forcing downtime of applications dependent on mmdb since they must be stopped and forced to close db's before touching the file) to that, otherwise you may cause a crash due to the mmap'd file.

If there was a way to load via a buffer+size, or just any other sort of method that isnt directly referencing the on-disk file in the library, that could help alleviate this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions