I have a 37 x 150000 records in MySQL which is mainly a key-value sort of data it could represented as:

+---------------+---------+
| Key           | Value   |
+---------------+---------+
| 22.789:77.456 | value 1 |
| 22.786:77.678 | value 2 |
|               |         |

I want a fast retrieval of data, so migrated it to Redis but issue is I have only 1.6 GB of RAM and the size of data to be stored is 4 GB, hence redis will not work in this case because it need all in memeory storage.

Is there any better option than MySQL which can work with only 1.6 GB of RAM?

有帮助吗?

解决方案

SQLite works like a charm with Python. It's small, portable, single-flat-file and can surprise you with what it can do. I'm working with it with a small DB of about 200k records, 30MB and is quite fast once you set the indexes and disable transactions.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top