Hacker News new | ask | show | jobs
by krackers 2307 days ago
If you were to just throw the file into a database, wouldn't the database's index essentially lead to the same result (b-tree, compacted using bulk-loading procedure).
2 comments

I briefly had a Rocket/IRC bot that talked to a postgres instance with the HIBP DB loaded into it, and yes it worked great.
True, but I wanted to create a library and a CLI without dependencies. I don't want to force an end user to install and use a database (even under the hood).