Fastest way to store/retrieve a dictionary - SQL, text file...?

Posted by AP257 on Stack Overflow See other posts from Stack Overflow or by AP257
Published on 2010-05-08T23:11:48Z Indexed on 2010/05/08 23:18 UTC
Read the original article Hit count: 201

Filed under:
|
|

Hi all,

This is a really really super dumb question, so I apologise, but I'd be grateful for some advice.

I've got a text file of words and word frequencies. It's very large - theoretically we're talking millions of rows.

I just want to retrieve values from the file, and do it as quickly and efficiently as possible (for a web app, in Django).

My question is: what is the best way to store and retrieve the values? Should import them into SQL? Or keep the file and use grep? Or put them into a JSON dictionary...? Or some other way?

Sorry for the dumb question, would be very grateful for advice!

© Stack Overflow or respective owner

Related posts about database

Related posts about data