Chinaunix首页 | 论坛 | 博客
  • 博客访问: 141129
  • 博文数量: 56
  • 博客积分: 245
  • 博客等级: 二等列兵
  • 技术积分: 520
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-08 14:43
个人简介

慢慢来

文章分类

全部博文(56)

文章存档

2017年(5)

2016年(2)

2015年(6)

2014年(28)

2013年(5)

2012年(10)

我的朋友

分类: Sybase

2016-01-05 10:27:54

Sybase 提供了对表进行hash join的命令 如下:

    select * from t1, t2
    plan "(h_join (scan t1) (scan t2) )"

ASE 15之后 sybase 默认开启 allrows_mix (之前是 allrows_oltp)
区别如下:(copy from )
Optimization Goal Details 

allrows_oltp [nested loop join] 
Nested-loop joins provide efficient access when tables are indexed on join columns. 

allrows_mix [merge joins + allrows_oltp] 
A merge join can use multiple worker processes to perform:. The scan that selects rows into a worktable, note a merge join may requires a sort.

allrows_dss [hash joins + allrows_mix] 
The hash join algorithm builds an in-memory hash table of the smaller of its targets. 
阅读(535) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~