Database - Designing an “Events” Table

前端 未结 3 1233
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 17:39

After reading the tips from this great Nettuts+ article I\'ve come up with a table schema that would separate highly volatile data from other tables subjected to heavy reads

3条回答
  •  甜味超标
    2020-12-12 17:56

    I can't add a comment to Ben's answer, so two things...

    First, it would be one thing to use views in a standalone OLAP/DSS database; it's quite another to use them in your transaction database. The High Performance MySQL people recommend against using views where performance matters

    WRT data integrity, I agree, and that's another advantage to using a star or snowflake with 'events' as the central fact table (as well as using multiple event tables, like I do). But you cannot design a referential integrity scheme around IP addresses

提交回复
热议问题