Database Tables, more the better?

前端 未结 6 1458
旧时难觅i
旧时难觅i 2021-01-06 14:16

Lately I\'ve been rethinking a database design I made a couple of months ago. The main reason is that last night I read the databse schema of vBulletin and saw that they use

6条回答
  •  清酒与你
    2021-01-06 14:59

    It depends. If you're going to have 1500000000 entries of type 1 and 1000 entries of type 2 and you'll be doing a LOT of queries on type 2, separate the tables. If not, it's more convenient to keep only one table.

    Keep in mind scalability:

    • How many entries of each type will I have in 1 year?

    • How many requests on this table will I be doing ?

    • Can you, at some point, clear this log? Can you move it to another table (like archive entries older than X months) ?

提交回复
热议问题