Can SQLite handle 90 million records?

前端 未结 8 2209
故里飘歌
故里飘歌 2020-12-04 10:50

Or should I use a different hammer to fix this problem.

I\'ve got a very simple use-case for storing data, effectively a sparse matrix, which I\'ve attempted to stor

8条回答
  •  攒了一身酷
    2020-12-04 11:25

    Consider using a table for new inserts of the given day, without an index. Then, at the end of each day, run a script which will:

    1. Insert new values from new_table into master_table
    2. Clear the new_table for next day of processing

    If you can do lookups on historical data in O(log n), and lookups on today's data in O(n), this should provide a nice compromise.

提交回复
热议问题