在SQL数据库表中,为什么冗余数据通常是一件坏事? [英] In SQL database tables, why is redundant data generally a bad thing?

查看:134
本文介绍了在SQL数据库表中,为什么冗余数据通常是一件坏事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么时候有必要?

(对于冗余数据,我是指多个表中的相同数据)

(for redundant data I mean same data in multiple tables)

推荐答案

这是一个广泛的问题,但我认为它有一些简洁的答案。

This is a broad question, but I think it has some succinct answers.

冗余数据是一个坏主意,因为当您修改数据(更新/插入/删除),则需要在多个地方进行。这就打开了整个数据库中数据变得不一致的可能性。

Redundant data is a bad idea because when you modify data (update/insert/delete), then you need to do it in more than one place. This opens up the possibility that the data becomes inconsistent across the database.

出于性能原因,有时需要冗余的原因。从查询的角度来看,冗余数据通常更容易使用。

The reason redundancy is sometimes necessary is for performance reasons. Often, redundant data is simply easier to work with from a querying perspective.

这篇关于在SQL数据库表中,为什么冗余数据通常是一件坏事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆