Skip to content

Commit 71cece9

Browse files
committed
Do not use Enterprise in example
The Enterprise database is quite large and most machines do not have enough RAM to load the tree into memory.
1 parent 03651da commit 71cece9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/mmdb-copy-entire-db.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33

44
[output]
55
format = "mmdb"
6-
file = "enterprise-with-anonymous.mmdb"
6+
file = "city-with-anonymous.mmdb"
77

88
[output.mmdb]
9-
database_type = "GeoIP2-Enterprise"
10-
description = { en = "Enterprise + Anonymous IP Merged" }
9+
database_type = "GeoIP2-City"
10+
description = { en = "City + Anonymous IP Merged" }
1111
record_size = 28
1212

1313
[[databases]]
14-
name = "enterprise"
15-
path = "../testdata/MaxMind-DB/test-data/GeoIP2-Enterprise-Test.mmdb"
14+
name = "city"
15+
path = "../testdata/MaxMind-DB/test-data/GeoIP2-City-Test.mmdb"
1616

1717
[[databases]]
1818
name = "anonymous"
1919
path = "../testdata/MaxMind-DB/test-data/GeoIP2-Anonymous-IP-Test.mmdb"
2020

21-
# Copy all Enterprise fields to root of output MMDB
21+
# Copy all City fields to root of output MMDB
2222
# This preserves the original structure: country, city, location, etc.
2323
[[columns]]
24-
name = "enterprise_all"
25-
database = "enterprise"
24+
name = "city_all"
25+
database = "city"
2626
path = [] # Copy entire record
2727
output_path = [] # Merge into root
2828

0 commit comments

Comments
 (0)