-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
So I have been playing around with mmdbctl and I was doing simple mmdb export to json and import back to mmdb. However, the process started taking up to 46 GB of memory. Luckily my machine had plenty of memory so import was successful. However, systems with low memory may run into problems.
I did some digging into source and found that mmdbctl is holding all data into memory and writing into file at once after processing is done. Can we do buffered writing and flush incrementally to prevent huge memory usages?
Line 453 in 6d422a6
| fmt.Fprintf(os.Stderr, "writing to %s (%v entries)\n", f.Out, entrycnt) |
Task Manager:
MMDB file used: GeoLite2-City.mmdb
Metadata
Metadata
Assignees
Labels
No labels
