What is the best way to store large amounts of data in python, given one (or two) 500,000 item+ dictionary used for undirected graph searching?
I've been considering a few options such as storing the data as XML:
<key name="a">
<value data="1" />
<value data="2" />
</key>
<key name="b">
...
or in a python file for direct access:
db = {"a": [1, 2], "b": ...}
or in a SQL database? I'm thinking this would be the best solution, but would I have to rely more on SQL to do the computation than python itself?