3

高基数数据特性是什么意思

 3 years ago
source link: https://segmentfault.com/a/1190000040401083
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

高基数数据特性是什么意思

发布于 今天 14:32

在 SQL 中,基数(cardinality)的定义为一个数据列中独一无二数据的数量。

高基数(High-Cardinality)的定义为在一个数据列中的数据基本上不重复,或者说重复率非常低。

例如我们常见的识别号,邮件地址,用户名等都可以被认为是高基数数据。 例如我们常定义的 USERS 数据表中的 USER_ID 字段,这个字段中的数据通常被定义为 1 到 n。

每一次一个新的用户被作为记录插入到 USERS 表中,一个新的记录将会被创建, 字段 USER_ID 将会使用一个新的数据来标识这个被插入的数据。

因为 USER_ID 中插入的数据是独一无二的,因此这个字段的数据技术就可以被考虑认为是 高基数(High-Cardinality) 数据。

https://www.ossez.com/t/topic...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK