简体   繁体   中英

Create my own text based data storage

I need to store maybe 250 million records of String -> String mappings and a database seems overload for this sort of thing.

I can't store this in memory as it will run out of heap space. I could extend the heap space, but I'd prefer not to do this.

I want as fast access as I can get to a single mapping as possible and wanted to know the best way to go about this.

The initial String is unique and what I will be searching by. I also know the range the string length will lie in, but its mapped value could be any length.

Is it possible to get something as fast as a database for searching? I'm guessing not but just wanted to be sure.

I'm working in Java, but I assume this will be language independent.

Redis http://redis.io/就是您所需要的!

Can't you use an already existing key-value store like Voldemort, CouchDB or Cassandra? There are so many existing projects, why write a new one?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM