Efficiently storing 7.300.000.000 rows

前端 未结 7 1865
感情败类
感情败类 2020-12-12 17:47

How would you tackle the following storage and retrieval problem?

Roughly 2.000.000 rows will be added each day (365 days/year) with the following information per ro

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 18:20

    I had similar problem (although with much bigger scale - about your yearly usage every day)

    Using one big table got me screeching to a halt - you can pull a few months but I guess you'll eventually partition it.

    Don't forget to index the table, or else you'll be messing with tiny trickle of data every query; oh, and if you want to do mass queries, use flat files

提交回复
热议问题