-
Notifications
You must be signed in to change notification settings - Fork 243
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
Python vs C extension difference with large db #335
Comments
You are likely near the maximum size that can be supported with 32 bit records. The exact maximum size will depend on the size of the search tree and data section. What writer are you using to create the database? That said, if you have been using the database with the pure Python implementation and have not run into any errors, I would suspect that a 32 bit integer in |
The standard MaxMind perl writer.
Yes, I get the same error
I'll look into this and reply later. |
If you want to share the database with me privately, you can email me at goschwald@maxmind.com. The Perl writer is no longer maintained, but I don't think it would produce a corrupt database if a maximum size was exceeded. I believe it would throw an exception when writing. |
I sent you an email regarding the db file. We have successfully created the db with the go driver, and will switch from the perl writer to that in the near future. |
Also, add guards to follow-up calculations to error if they overflow. Closes #335.
Also, add guards to follow-up calculations to error if they overflow. Closes #335.
Also, add guards to follow-up calculations to error if they overflow. Closes #335.
Also, add guards to follow-up calculations to error if they overflow. Closes #335.
|
We have a custom built db with the following details:
The database works with python implementation. The latest maxminddb python library came with a vendored copy of
libmaxminddb
, and we noticed that the database doesn't work with the C extension.Opening the database succeeds, but a query for an IP results in
Slightly smaller database works properly also with the C extension, so maybe the database size is the problem?
The text was updated successfully, but these errors were encountered: