当前位置: 首页 > news >正文

重庆主城优化网站建设wordpress 大数据量查询

重庆主城优化网站建设,wordpress 大数据量查询,怎么快速推广自己的二维码,什么网站可以申请做汉语老师LightDB 从23.4 版本开始支持opt_param hint, 用来设置优化器相关的guc参数#xff0c;用法和oracle的opt_param 相同。 设置的参数需要是 LightDB的参数#xff08;不是oracle的参数#xff09;。参数名用单引号括起来字符串型的参数值也需要用单引号括起来作用于整条SQL …LightDB 从23.4 版本开始支持opt_param hint, 用来设置优化器相关的guc参数用法和oracle的opt_param 相同。 设置的参数需要是 LightDB的参数不是oracle的参数。参数名用单引号括起来字符串型的参数值也需要用单引号括起来作用于整条SQL 具体用法参考如下示例 示例 表结构 create table test_opt_param1(key1 int, key2 int, primary key(key1)); create table test_opt_param2(key1 int, key2 int, primary key(key1)); create table test_opt_param3(key1 int, key2 int, primary key(key1));基本用法 EXPLAIN (COSTS false) select * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1;QUERY PLAN -------------------------------------------Hash JoinHash Cond: (a.key1 b.key1)- Seq Scan on test_opt_param1 a- Hash- Seq Scan on test_opt_param2 b (5 rows)EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, off)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; LOG: lt_hint_plan: used hint: opt_param(enable_hashjoin off) not used hint: duplication hint: error hint:QUERY PLAN --------------------------------------------------------------------------Merge JoinMerge Cond: (a.key1 b.key1)- Index Scan using test_opt_param1_pkey on test_opt_param1 a lt#0- Index Scan using test_opt_param2_pkey on test_opt_param2 b lt#0 (4 rows)EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, false)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; LOG: lt_hint_plan: used hint: opt_param(enable_hashjoin false) not used hint: duplication hint: error hint:QUERY PLAN --------------------------------------------------------------------------Merge JoinMerge Cond: (a.key1 b.key1)- Index Scan using test_opt_param1_pkey on test_opt_param1 a lt#0- Index Scan using test_opt_param2_pkey on test_opt_param2 b lt#0 (4 rows)EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, 0)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; LOG: lt_hint_plan: used hint: opt_param(enable_hashjoin 0) not used hint: duplication hint: error hint:QUERY PLAN --------------------------------------------------------------------------Merge JoinMerge Cond: (a.key1 b.key1)- Index Scan using test_opt_param1_pkey on test_opt_param1 a lt#0- Index Scan using test_opt_param2_pkey on test_opt_param2 b lt#0 (4 rows)EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, 1)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; LOG: lt_hint_plan: used hint: opt_param(enable_hashjoin 1) not used hint: duplication hint: error hint:QUERY PLAN ---------------------------------------------------Hash JoinHash Cond: (a.key1 b.key1)- Seq Scan on test_opt_param1 a lt#0- Hash- Seq Scan on test_opt_param2 b lt#0 (5 rows)错误用法 EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, off)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; INFO: lt_hint_plan: hint syntax error at or near opt_param(enable_hashjoin, off) DETAIL: opt_param hint requires parameter name to be enclosed in single quotation marks. LOG: lt_hint_plan: used hint: not used hint: duplication hint: error hint: opt_param(enable_hashjoin off)QUERY PLAN ---------------------------------------------------Hash JoinHash Cond: (a.key1 b.key1)- Seq Scan on test_opt_param1 a lt#0- Hash- Seq Scan on test_opt_param2 b lt#0 (5 rows)EXPLAIN (COSTS false) select/*opt_param(enable_hashjoin, off)*/ * from test_opt_param1 a join test_opt_param2 b on a.key1b.key1; INFO: lt_hint_plan: hint syntax error at or near opt_param(enable_hashjoin, off) DETAIL: opt_param hint requires parameter values that are strings to be enclosed in single quotation mark. LOG: lt_hint_plan: used hint: not used hint: duplication hint: error hint: opt_param(enable_hashjoin off)QUERY PLAN ---------------------------------------------------Hash JoinHash Cond: (a.key1 b.key1)- Seq Scan on test_opt_param1 a lt#0- Hash- Seq Scan on test_opt_param2 b lt#0 (5 rows)
http://www.yutouwan.com/news/457511/

相关文章:

  • 沈阳网站网站建设wap网站生成小程序
  • 用备份的网站代码做网站步骤wordpress 修改文章作者
  • 做网站找哪里爆推联盟官网
  • 站长之家官网怎样自己做免费网站
  • 视觉设计类网站中国最好的网站器域名统一
  • 荆州市城市建设档案馆网站绵阳 网站 建设
  • 网站优化外链怎么做网页设计图片居中怎么设置
  • 百度统计网站企业该如何进行网站推广
  • 企业网站系统手机版12306网站是阿里做的
  • 万江营销型网站建设wordpress如何修改版权
  • 关键词爱站网佛山搭建建网站哪家好
  • vs做网站各种控件的使用微信建设网站
  • 成都建设网站首页网店推广的方法
  • wordpress 常见问题重庆百度搜索优化
  • 太原市建设工程交易中心网站大连企业公司网站建设
  • 途牛网站建设的特点建设局电话号码
  • 怎么制作php网站h5做招聘网站
  • 邹城网站建设多少钱微盟集团官网
  • 中国网站建设总部在哪里如何开展网络推广
  • 浙江网站建设公司排名加强企业门户网站建设
  • 滕州网站制作哪家好网站开发教程H5
  • 烟台网站建设开发第三方网站
  • 直接做的视频网站月坛网站建设公司
  • 佛山网站开发公司有哪些南雄市住房和城乡建设局网站
  • cn域名后缀网站沈阳网站建设小工作室
  • 设计公司网站公司详情网络搜索工具
  • 电脑做网站服务器教程凡科网收费标准
  • 上海网站设计成功柚v米科技百度网站优化软件
  • 台州做网站是什么wordpress 点击加微信二维码
  • 临沂网站建设wordpress 插件 爬文章