1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
The answer depends on a number of factors, including whether you are using IPv4 or IPv6 addresses (or both), whether you are tracking individual addresses, subnets, or both, and whether you need to store additional attributes other than just the address range.
One approach for IPv4 lookup is to convert the ip address to an integer, store the integer in a DocumentDB document with associated metadata, and use simple $eq queries to match relevant documents. https://stackoverflow.com/questions/18281696/mongodb-network-subnet-lookup has an example of a similar approach.
回答済み 5年前
関連するコンテンツ
- AWS公式更新しました 1年前
- AWS公式更新しました 3年前