Updating denormalized database tables

后端 未结 2 1848
天命终不由人
天命终不由人 2021-01-17 00:20

I am using Ruby on Rails 3.0.7 and MySQL 5. In my application I have two database tables, say TABLE1 and TABLE2, and for performance reasons I have denormalizated some data

2条回答
  •  遥遥无期
    2021-01-17 01:03

    Or you can maintain normalized set of data and have your two denomalized tables. And periodically sync them. Other way have a normalized table structure to maintain data (insert/update/delete) and write a materialized view to do the reporting, that is what you are achieving by unnormalized view. you can set data updation parameters for materialized views as per your requirements.

提交回复
热议问题