MaxMind MMDB二进制GeoIP2数据库的大小是多少? [英] What's the size of the MaxMind MMDB binary GeoIP2 databases?

查看:158
本文介绍了MaxMind MMDB二进制GeoIP2数据库的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MaxMind GeoIP2数据库的二进制文件系统的大小是多少?我要问的是国家和城市级别的数据库.

What's the size on file system of the MaxMind GeoIP2 databases in binary format? I'm asking about both the country and the city level db.

很遗憾,我在任何地方都找不到此信息.

Unfortunately I can't find this information anywhere.

我知道文件大小会随着时间而变化,但是我需要粗略估计存储需求.

I know the file size will change over time but I need to roughly estimate the storage requirements.

还有,有人知道解析单个IP的最小控制台应用程序上的内存占用吗?

Also, does anybody know the memory footprint on a minimal console application that resolve a single ip?

推荐答案

当前的City数据库约为122 MB.内存占用量将取决于您用于读取文件的特定API.大多数官方API都会对文件进行内存映射,因此无需将整个数据库加载到实际内存中.

The current City database is approximately 122 MB. The memory footprint would depend on the particular API you are using to read the file. Most of the official APIs memory-map the file so there is no need to load the whole database into real memory.

这篇关于MaxMind MMDB二进制GeoIP2数据库的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆