Databases 3 min read

ip2region 2.11.0 Release Highlights: New Golang XDB Editor, Data Updates, and Optimizations

The ip2region 2.11.0 release introduces a Golang XDB editor for easy IP data modification, updates the XDB dataset with community‑provided fixes, adds a data‑update scheme, and improves Golang/Java makers and query clients, offering high‑performance offline IP lookup across multiple languages.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
ip2region 2.11.0 Release Highlights: New Golang XDB Editor, Data Updates, and Optimizations

ip2region (2.0 - xdb) is an offline IP data management framework and location library that supports hundred‑million‑scale IP segment management, offers query performance at the 10‑microsecond level, and provides generation and query implementations for the xdb data format in many mainstream programming languages.

Specific updates in ip2region 2.11.0:

1. Added a Golang implementation of an XDB data editor, which makes it very convenient to modify or batch‑update IP data, as shown below:

➜  golang git:(master) ./xdb_maker edit --src=../../data/ip.merge.txt<br/>init the editor from source @ `../../data/ip.merge.txt` ... <br/>all segments loaded, length: 683844, elapsed: 446.885102ms<br/>command list: <br/>  put [segment]        : put the specifield $segment<br/>  put_file [file]      : put all the segments from the specified $file<br/>  list [offset] [size] : list the first $size segments start from $offset<br/>  save                 : save all the changes to the destination source file<br/>  quit                 : exit the program<br/>  help                 : print this help menu<br/>editor>>

Documentation can be referenced in the README demonstration.

2. Updated the XDB data; this is not a global update but a version that incorporates community‑provided corrections, thanks to the following three issues for their data fixes:

https://github.com/lionsoul2014/ip2region/issues/196<br/>https://github.com/lionsoul2014/ip2region/issues/200<br/>https://github.com/lionsoul2014/ip2region/issues/243

3. Released a data‑update scheme that utilizes community data for a certain amount of updates.

4. Optimized updates for the Golang/Java makers and the query client.

Found this article helpful? Liking and sharing are the greatest support!

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

databaseGolangXDBIP geolocationoffline lookup
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.