12
返回列表 发新帖
楼主: translate

一个分区表上的GLOBAL索引和普通索引相比有什么优势?

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
11#
发表于 2010-1-26 03:55 | 只看该作者
原帖由 translate 于 2010-1-25 00:17 发表
create index t_idx
on t(owner,object_type,object_name)
global
partition by hash(owner)
partitions 16


If you hash-partition the index on owner, you'll have much less contention on index root block for high concurrent queries like "... where owner = 'ABC'". A non-partitioned index can't sustain high concurrency due to root block contention.

Yong Huang

使用道具 举报

回复
论坛徽章:
6
2008新春纪念徽章
日期:2008-02-13 12:43:032010年世界杯参赛球队:德国
日期:2010-02-24 21:32:112010新春纪念徽章
日期:2010-03-01 11:19:50鲜花蛋
日期:2011-07-20 11:42:27ITPUB十周年纪念徽章
日期:2011-11-01 16:24:042012新春纪念徽章
日期:2012-01-04 11:53:54
12#
 楼主| 发表于 2010-1-27 17:18 | 只看该作者
原帖由 Yong Huang 于 2010-1-26 03:55 发表


If you hash-partition the index on owner, you'll have much less contention on index root block for high concurrent queries like "... where owner = 'ABC'". A non-partitioned index can't sustain high concurrency due to root block contention.

Yong Huang



    谢谢

      这个只是一个例子,在TOM这本书里面讲了大量的LOCAL PARTITION索引和GLOBAL PARTITION索引的区别,但是我想知道什么时候在一个PARTITION表上如果建立一个普通索引和建立GLOBAL PARTITION索引有什么区别

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
13#
发表于 2010-1-28 04:13 | 只看该作者
原帖由 translate 于 2010-1-27 03:18 发表
      这个只是一个例子,在TOM这本书里面讲了大量的LOCAL PARTITION索引和GLOBAL PARTITION索引的区别,但是我想知道什么时候在一个PARTITION表上如果建立一个普通索引和建立GLOBAL PARTITION索引有什么区别


"区别" in what sense? I already said there's difference in reducing contention. Do you want to know the difference in administration? They both become unusable after either the whole table or one of the partitions goes through certain DDL. Difference in syntax to create them? You already know it.

Yong Huang

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表