I have a data structure like this:
{
'key1':[
[1,1,'Some text'],
[2,0,''],
...
],
...
'key99':[
[1,1,'Some text'],
[2,1,'More text'],
...
],
}
The size of this will be only like 100 keys and 100 lists in each key.
I like to store it and retrieve it (the entire list) based on the key. This is for a use in a web-server with not very high traffic. However, the back end must handle concurrent reads and writes.
How to do this in a safe way and without writing too much code?
I suppose storing the pickled object in SQLite is a possible solution.
Are there better ways?