搜索到与相关的文章
各行各业

CentOs yum configuration

ThesedaysIinstallaCentOsbutIcan'tinputinChinese.Thismakemeupset.ThenIknowit'stheproblemofyum.ThenIchangedtheyumsource.第1步wgethttp://mirrors.ustc.edu.cn/centos/CentOS-Base.5.mirrors.repo-O/etc/yum.repos.d/CentOS-Base.repo备份yum配置文件,

系统 2019-08-12 09:26:51 2253

数据库相关

(not) in 和 (not) exists区别

in和exists区别in是把外表和内表作hashjoin,而exists是对外表作loop,每次loop再对内表进行查询。一直以来认为exists比in效率高的说法是不准确的。如果查询的两个表大小相当,那么用in和exists差别不大。如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in:例如:表A(小表),表B(大表)1:select*fromAwhereccin(selectccfromB)效率低,用到了A表上cc列的索

系统 2019-08-12 01:54:43 2253

数据库相关

执果索因调整greenplum table dk值

前面一篇文章写到如何通过gp_segment_id来判断表的DK值设置有数据,下面是通过查看占用空间的量来检查分配不平衡的表,并重新调整着DK值。我的一台greenplum机器,其中的一个节点的数据量比其它的节点多很多,说明数据分布的不平衡,如下所示:以sdw16为例:$du-sh/gpdata{1,2}/data/gp*347G/gpdata1/data/gp30412G/gpdata1/data/gp62357G/gpdata1/data/gp6333

系统 2019-08-12 01:54:28 2253

数据库相关

正规表达