-
Notifications
You must be signed in to change notification settings - Fork 360
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
[Request] What to do if we don't need the 'city' database ? #268
Comments
honestly, I'm a bit rusty on this. I think it should be possible to run without a city database, I just don't remember how. |
I have created ip-location-api which has similar in-memory database system with |
@BenStirrup After thoroughly reviewing the code, it appears that the package, as it currently stands, is not capable of adapting to the specific settings you're trying to configure. Regardless of whether you need certain properties or not, the package caches the MaxMind data at initialization, which can be unnecessarily resource-intensive. To achieve better performance and flexibility, the package's internal architecture would need to be revised. Specifically, it should support selective caching, allowing only essential data to be loaded based on configuration, rather than defaulting to cache everything. This would prevent the overhead associated with caching MaxMind's heavy datasets when they aren't needed. |
patches welcome. |
Hello all,
Our use case only involves the use of the
country
data from an ip. Example :We don't even need to query or download the cities database.
@bluesmoon would there be a good way to go about it ?
The text was updated successfully, but these errors were encountered: