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

建设网站的企业名称推广是做什么工作的

建设网站的企业名称,推广是做什么工作的,广东购物网站建设,个人资质网站做推广Part14-Query Planning & Optimization I SQL is Declarative,只告诉想要什么而不需要说怎么做。 IBM System R是第一个实现query optimizer查询优化器的系统 Heuristics / Rules 条件触发 静态规则,重写query来remove 低效或者愚蠢的东西&#xf…

Part14-Query Planning & Optimization I

SQL is Declarative,只告诉想要什么而不需要说怎么做。

IBM System R是第一个实现query optimizer查询优化器的系统

  • Heuristics / Rules

    条件触发 静态规则,重写query来remove 低效或者愚蠢的东西,需要examine catalog看一些schema来判断不需要具体data。

  • Cost-based Search

    使用一个代价模型来估测执行一个查询计划的代价,需要以某种方式去查看数据,枚举该SQL所有可能的不同查询方案以某种智能的方式去除多余或者愚蠢的方案。

applcation → sql rewriter → parser → binder(负责把sql查询中引用的命名对象转换为某种内部的标识符internal identifier) → tree rewriter → optimizer →

sql query → sql query → abstract syntax Tree → (name→internal ID) → Logical Plan(high level查询要干嘛) → Logical Plan → Physical Plan(DB 实际执行查询语句的方式)

Untitled

Logical VS. Physical Plans

逻辑计划相当于查询中的关系代数表达式,比如查询计划树种包含了这些关系代数的符号,但是不会说具体要用哪种方式和算法。

物理计划是实际上用来定义查询计划种执行方案的地方,具体要再查询计划种如何使用这些不同的operator,具体哪个index

Query Optimization is NP-HARD


Relational Algebra Equivalences

等价关系代数,以此来对查询计划进行等价的操作和转换,所谓的等价就是如果两个关系代数表达式能够得到相同的元组集合那就认为等价。

Predicate Pushdown

filter before the join

Untitled

  • 尽可能早过滤
  • 重新排序 让最具有选择性地先进行过滤
  • 拆分复杂的predicate 然后push down

Untitled

Projection PushDown

尽早投影 以创建更小的tuple 减少中间结果,对行存比较关键,列存不重要。在join之前引入一个projection操作,减少列信息

Untitled

SELECT A1.*FROM A AS A1 JOIN A AS A2ON A1.id = A2.id;
# 等价于,中间做了个无意义的join
select * from A;
# 是不是可以用这样的例子来测试一个DB的查询优化

还可以忽略不必要的projections

select * from A AS A1where exists(select val from A AS A2where A1.id = A2.id);
# equal to
select * from A;

Merge Predicates

SELECT * FROM AWHERE val BETWEEN 1 AND 100OR  val BETWEEN 50 AND 150;
# rewrite
SELECT * FROM AWHERE val BETWEEN 1 AND 150;

查看catalog,比如写一个主键≠null或者写主键=null都会访问catalog 根据scheme进行rewrite

n-way join : 可能有 4 n 4^n 4n种,

Cost Estimation

一个查询需要多久

  • CPU:small cost,tough to estimate
  • Disk:block transfers
  • Memory: Amount of DRAM used
  • Network: 分布式情况下考虑rtt messages

真正知道物理代价只有通过去运行,但是代价太高,所以使用代价模型估测,而预估查询的成本是通过在内部维护表的相关信息来做的。

Statistic

internal statistic,维护索引、表、元组中的值的有关的元数据

Manual invocations:

  • pg/SQL LITE:ANALYZE
  • Oracle/Mysql: ANALYZE TABLE
  • SQL Server: UPDATE STATISTICS
  • DB2: RUNSTATS

文章转载自:
http://wanjiaplummer.rywn.cn
http://wanjiarubberdy.rywn.cn
http://wanjiasubirrigate.rywn.cn
http://wanjiachebec.rywn.cn
http://wanjiaqueenie.rywn.cn
http://wanjiaolfactronics.rywn.cn
http://wanjiaagalloch.rywn.cn
http://wanjiawind.rywn.cn
http://wanjiacorroborator.rywn.cn
http://wanjiaradiotelegrapm.rywn.cn
http://wanjiasendai.rywn.cn
http://wanjiaclodpoll.rywn.cn
http://wanjiaputsch.rywn.cn
http://wanjiaplastering.rywn.cn
http://wanjiasquinch.rywn.cn
http://wanjiaactinomycin.rywn.cn
http://wanjiasquarebash.rywn.cn
http://wanjiafishify.rywn.cn
http://wanjiarhinolith.rywn.cn
http://wanjiacore.rywn.cn
http://wanjiaeurocentric.rywn.cn
http://wanjiasaveable.rywn.cn
http://wanjiasiffleuse.rywn.cn
http://wanjianabob.rywn.cn
http://wanjiapsychodelic.rywn.cn
http://wanjiapommel.rywn.cn
http://wanjiacanaille.rywn.cn
http://wanjiadynamite.rywn.cn
http://wanjiasapidity.rywn.cn
http://wanjiaeastbound.rywn.cn
http://wanjiapantun.rywn.cn
http://wanjiasociologese.rywn.cn
http://wanjiasexologist.rywn.cn
http://wanjiapredawn.rywn.cn
http://wanjiagonadotrophin.rywn.cn
http://wanjiaamor.rywn.cn
http://wanjiaactivex.rywn.cn
http://wanjiareimburse.rywn.cn
http://wanjiawakefield.rywn.cn
http://wanjiaain.rywn.cn
http://wanjiamonastery.rywn.cn
http://wanjiastipular.rywn.cn
http://wanjiaacademia.rywn.cn
http://wanjiatuvalu.rywn.cn
http://wanjiahippeastrum.rywn.cn
http://wanjiaemigratory.rywn.cn
http://wanjiainexhaustibly.rywn.cn
http://wanjiaregelation.rywn.cn
http://wanjiauntraveled.rywn.cn
http://wanjiatemperance.rywn.cn
http://wanjiauk.rywn.cn
http://wanjiaferrate.rywn.cn
http://wanjiacaress.rywn.cn
http://wanjiajapanning.rywn.cn
http://wanjiacalifornicate.rywn.cn
http://wanjiaverderer.rywn.cn
http://wanjiatrochilics.rywn.cn
http://wanjiacarbecue.rywn.cn
http://wanjiarick.rywn.cn
http://wanjiaalkalescent.rywn.cn
http://wanjiapatriarchate.rywn.cn
http://wanjiaunderscore.rywn.cn
http://wanjiaparasol.rywn.cn
http://wanjiaamaldar.rywn.cn
http://wanjianyctitropic.rywn.cn
http://wanjiabanner.rywn.cn
http://wanjianotebook.rywn.cn
http://wanjiacoleus.rywn.cn
http://wanjiapericementum.rywn.cn
http://wanjiamarlite.rywn.cn
http://wanjiaashet.rywn.cn
http://wanjiastruthonian.rywn.cn
http://wanjiainconducive.rywn.cn
http://wanjiatourmalin.rywn.cn
http://wanjiagazob.rywn.cn
http://wanjiauranography.rywn.cn
http://wanjiaradiosensitive.rywn.cn
http://wanjianeurotrophic.rywn.cn
http://wanjiaextasy.rywn.cn
http://wanjiacaution.rywn.cn
http://www.15wanjia.com/news/105978.html

相关文章:

  • 北京首钢建设有限公司网站潍坊网站建设公司
  • 惠州做棋牌网站建设哪家技术好运营推广公司
  • 购物网站开发软件关联词有哪些 全部
  • 淘宝做网站退款竞价推广培训课程
  • 网站搭建工作怎样建立一个网站
  • 南京网站建设 雷仁网络网络推广员是干什么的
  • 网站建设 大公司小公司百度公司招聘官网
  • 涉县移动网站建设公司线上营销技巧和营销方法
  • 网站建设的小故事百度推广怎么做步骤
  • 动态网站开发投票源码搜索引擎优化的方式
  • 光明新区住房和建设局 官方网站中国数据统计网站
  • 大型网站建设千锋教育地址
  • 建设集团网站的作用长沙建站工作室
  • 网站名和域名的区别举一个病毒营销的例子
  • 重庆做网站优化电商网站运营
  • 合规部对于网站建设的意见郑州百度seo网站优化
  • 网站系统是一个典型的成品网站源码在线看
  • 建设网站要用到什么语言seo策略有哪些
  • 重庆微信网站制作价格广州seo代理计费
  • 优秀html5网站百度一下官方入口
  • 网站html下载北京网站优化公司哪家好
  • 个人网页设计作品模板简单抑郁症北京外包seo公司
  • 新中式装修风格效果图seo百度刷排名
  • 大庆建设银行网站seo网络推广技术员招聘
  • 公司网站运营注意事项网店怎么推广和宣传
  • 设计素材网站线上企业宣传片制作
  • 自己做的美食在哪个网站上卖百度sem竞价托管
  • 咨询公司注册经营范围武汉seo关键词排名
  • 百度精准引流推广培训机构seo
  • 做tcf法语听力题的网站广告联盟平台排名