-
Notifications
You must be signed in to change notification settings - Fork 21
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
Dataset Updating Plan #68
Comments
Also cc @Kubuxu |
@hacdias how many entries there are in IPv6 dataset? |
@Kubuxu about 431 990 for the IPv6 dataset and 3 252 943 for the IPv4 one. |
Sorry (got a lot on my head). |
Thanks! Will be awaiting! |
Not accounting for IPv6 addresses, this is my current idea and plan. I am thinking of keeping the same binary tree structure as we have now, but I do have some doubts and questions to be answered. Please let me know what you think:
|
Sadly I had no bandwidth, this needs another set of eyes. |
Figuring out new data structures will be time consuming, and given limited bandwidth I propose we simply convert the new CSV dataset to the format of old CVS source files: ipfs-geoip/src/generate/index.js Lines 15 to 22 in 00f72f9
That way ipfs-geoip does not need to be rewritten, and we can at least update IPv4 info. |
This updates the IPv4 City geoip dataset to the latest version provided on https://dev.maxmind.com/geoip/geoip2/geolite2/ The b-tree format and lookup logic remain unchanged, however the code responsible for building the b-tree had to be changed to work with the new CSV format of the source dataset. Closes #68 Closes #63 BREAKING CHANGE: `area_code` and `metro_code` are no longer provided due to upstream changes License: MIT Signed-off-by: Marcin Rataj <[email protected]>
While planning to move to the new dataset (see #63), I found some problems I need help with!
Field, information, field and more information
First of all, right now, we have the following data for each location:
The new datasets contain much more than that:
I am pretty sure we don't need all of those fields, so the first goal of this issue is to define which informations do we want to provide through this package.
IPv6
The second issue is: how to support IPv6 (#60)? The newest dataset has an IPv6 table too! Just like the IPv4, we are provided with CIDR addresses that allow us to know the range for which to check for IPv6 addresses. However, unlike IPv4, there's no "int long" form of IPv6 so we can't keep the same structure as we have now for IPv4.
Knowing this, how'd you suggest to tackle this issue? How to organize the information in such a way we can fetch it quickly?
Languages?
The new dataset provides translations for just some languages. Are they worth including or shall we keep just the english ones for now?
Also, I am thinking about setting up a way of updating the geoip database automatically since they update it every tuesday. It would be great so we wouldn't need to think a lot about this (perhaps just merging a PR with the newer CID).
Ping @lidel
The text was updated successfully, but these errors were encountered: