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

Feature Request: Expose database mode in maxminddb.reader.Metadata #13

Open
nickwilliams-eventbrite opened this issue Apr 7, 2015 · 0 comments

Comments

@nickwilliams-eventbrite
Copy link

In production environments, it can be hard to determine which mode (MODE_FILE, MODE_MMAP, MODE_MMAP_EXT, etc.) the reader is using with MODE_AUTO without experimenting (setting the mode explicitly), seeing which modes work, and then assuming MODE_AUTO is selected the mode you want (MODE_MMAP_EXT). Experimenting in production can cause problems.

It would be very helpful if the maxminddb.reader.Metadata object exposed the mode (string value) and whether that mode was auto or explicit (boolean). That way, a simple glance at the metadata could confirm that you've installed and configured everything correctly.

beamerblvd pushed a commit to beamerblvd/MaxMind-DB-Reader-python that referenced this issue Apr 7, 2015
beamerblvd pushed a commit to beamerblvd/MaxMind-DB-Reader-python that referenced this issue Apr 8, 2015
beamerblvd pushed a commit to beamerblvd/MaxMind-DB-Reader-python that referenced this issue Apr 8, 2015
beamerblvd pushed a commit to beamerblvd/MaxMind-DB-Reader-python that referenced this issue Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants