sql - in-memory database in Python -
I'm having some questions in Python on a large database to get some data from the database. I want to keep these data in in-store so that other programs can use them without going to a database.
How do I structure them, and thinking about trying to establish some complex nested dictionaries, I realized that a good representation would be the SQL table, I would not always store the data back in the database. Want to, though. What are the in-memory implementations of SQL databases that support querying data with SQL databases?
SQLite3 might work
You can also supply special names: Memory: RAM for creating a database in memory implementation in Python interface .
This transaction is also relatively cheap, to go based on what you are doing, just:
import sqlite3 conn = sqlite3.connect (': Memory:')
You can proceed as you would a regular database.
Depending on your data - if you can get from key / value (strings, hash, lists, sets, sorted sets, etc.) - this can be the second option for finding ( As you mentioned, you wanted to share with other programs).
Comments
Post a Comment