I\'m doing some queries in Python on a large database to get some stats out of the database. I want these stats to be in-memory so other programs can use them without going
You could possibly use a database like SQLite. It's not strictly speaking in memory, but it is fairly light and would be completely separate from your main database.