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

Reduce RAM footprint by just using country? #83

Closed
chrisjhoughton opened this issue Apr 23, 2015 · 2 comments
Closed

Reduce RAM footprint by just using country? #83

chrisjhoughton opened this issue Apr 23, 2015 · 2 comments

Comments

@chrisjhoughton
Copy link

First of all - great library, makes a complicated thing so simple.

For our project, all we're looking to do is group customers by country. Is it possible to use this module without having to load in all the other more specific region and metro code data to reduce the memory footprint?

Clearly it'll work with a fork, but curious to see if there's another way.

@bluesmoon
Copy link
Collaborator

I think if you replace the city data files with empty files, it should work.

@chrisjhoughton
Copy link
Author

Awesome, will give that go thanks

STRML pushed a commit to STRML/node-geoip-country-only that referenced this issue Sep 12, 2016
Avoid trying to read from empty city data files (fixes geoip-lite#83)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants