Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSQL or YesSQL

I have a huge dictionary of words:

"word1" => [value1]
"word2" => [value2]
"word3" => [value3, value2]
...
"word400000000" => [value455, value3435, ..., value3423]

number of words is really big.

Now I want to be able to retrieve, really fast, all the values which are being pointed by word. word is string value.

What are the best tools to use? I thought of simple DB solution, but DBA guys said that it will not work really fast.

So, before I open Cormen's book, is there some ready solutions for that problem?

like image 266
David Avatar asked Feb 03 '23 22:02

David


1 Answers

Look at key/value storage engines such as Berkeley DB. They are very fast at that sort of thing.

like image 109
Ferruccio Avatar answered Mar 05 '23 16:03

Ferruccio