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

网站备案怎么那么慢点击排名优化

网站备案怎么那么慢,点击排名优化,青柠影院免费观看电视剧高清8,哈尔滨城乡建设局网站结论 对于有索引的的字段作为更新条件,如果更加语句用上了索引,那么只会在对于的更新字段的索引和对于记录的主键索引上加上x锁 如果更新字段没有索引,由于需要全部扫描,那么就会给所有主键索引加上x,导致其他事务的更…

结论

    对于有索引的的字段作为更新条件,如果更加语句用上了索引,那么只会在对于的更新字段的索引和对于记录的主键索引上加上x锁

    如果更新字段没有索引,由于需要全部扫描,那么就会给所有主键索引加上x,导致其他事务的更新操作被阻塞

准备

有表 t_person_info,create_time没有加索引,有记录: 4429

执行无索引字段更新

执行下面的事务,不提交


begin;
update  t_person_info set type='2' where create_time>SYSDATE()-2 and create_time<=SYSDATE()-1;rollback;

查看锁信息(mysql8版本)

 

执行有索引记录更新

   给create_time创建索引。

ALTER TABLE `datacatlog`.`t_person_info` 
ADD INDEX `idx_create_time`(`create_time`) USING BTREE;

sql: 

select  * from t_person_info where create_time<STR_TO_DATE('05/10/2024 14:30:00', '%d/%m/%Y %H:%i:%s')and create_time>STR_TO_DATE('05/10/2022 14:30:00', '%d/%m/%Y %H:%i:%s')

 执行计划:


EXPLAIN select  * from t_person_info where create_time<STR_TO_DATE('05/10/2024 14:30:00', '%d/%m/%Y %H:%i:%s')and create_time>STR_TO_DATE('05/10/2022 14:30:00', '%d/%m/%Y %H:%i:%s')

  

然后再更新:


begin;
update  t_person_info set type='2' where create_time>SYSDATE()-2 and create_time<=SYSDATE()-1;rollback;

 查看锁信息(mysql8版本)

可以看到上面查询的符合条件的记录都被加上x锁了。

然后执行其他更新操作:

 

执行无主键和无唯一键的表更新 

    t_test表有test1 test2 test3三个字段,但是没有任何索引,也没有主键

  

 

 开始一个执行更新事务

BEGIN;update t_test set test1='r2rr' where test2='233';ROLLBACK

 


文章转载自:
http://dinncohumpbacked.tqpr.cn
http://dinncobobsled.tqpr.cn
http://dinncosqualoid.tqpr.cn
http://dinncomediate.tqpr.cn
http://dinncotectosilicate.tqpr.cn
http://dinncourundi.tqpr.cn
http://dinncoparticipialize.tqpr.cn
http://dinncophenacetine.tqpr.cn
http://dinncotalocalcaneal.tqpr.cn
http://dinncodiamantiferous.tqpr.cn
http://dinncosporangiospore.tqpr.cn
http://dinncotorquate.tqpr.cn
http://dinncomawkish.tqpr.cn
http://dinncopabx.tqpr.cn
http://dinncohangout.tqpr.cn
http://dinncocabinetmaking.tqpr.cn
http://dinncochokedamp.tqpr.cn
http://dinncowonder.tqpr.cn
http://dinncodiriment.tqpr.cn
http://dinncoabu.tqpr.cn
http://dinncoaestilignosa.tqpr.cn
http://dinncolordosis.tqpr.cn
http://dinncodrupelet.tqpr.cn
http://dinncotrichothecin.tqpr.cn
http://dinncomaraca.tqpr.cn
http://dinncoactinology.tqpr.cn
http://dinncoinduction.tqpr.cn
http://dinncoliqueur.tqpr.cn
http://dinncowanderjahr.tqpr.cn
http://dinncosolely.tqpr.cn
http://dinncoorphic.tqpr.cn
http://dinncopermanently.tqpr.cn
http://dinncoun.tqpr.cn
http://dinnconairnshire.tqpr.cn
http://dinncoyulan.tqpr.cn
http://dinncounmitre.tqpr.cn
http://dinncodenarius.tqpr.cn
http://dinncosimpleness.tqpr.cn
http://dinncocoquetry.tqpr.cn
http://dinncokeratitis.tqpr.cn
http://dinncooutgame.tqpr.cn
http://dinncotranspersonal.tqpr.cn
http://dinncopresession.tqpr.cn
http://dinncovacate.tqpr.cn
http://dinncoirredeemable.tqpr.cn
http://dinncostillborn.tqpr.cn
http://dinncoadpress.tqpr.cn
http://dinncoquamash.tqpr.cn
http://dinncoastronautic.tqpr.cn
http://dinncorho.tqpr.cn
http://dinncotuner.tqpr.cn
http://dinncohydrolab.tqpr.cn
http://dinncosoftpanel.tqpr.cn
http://dinncocellarman.tqpr.cn
http://dinncobhang.tqpr.cn
http://dinncolinalool.tqpr.cn
http://dinncotabor.tqpr.cn
http://dinncoplatitudinize.tqpr.cn
http://dinncocorporally.tqpr.cn
http://dinncokailyard.tqpr.cn
http://dinncononalcoholic.tqpr.cn
http://dinncocounterreaction.tqpr.cn
http://dinncoaberdonian.tqpr.cn
http://dinncoalertly.tqpr.cn
http://dinncoconnoisseurship.tqpr.cn
http://dinncoarytenoidal.tqpr.cn
http://dinncojackadandy.tqpr.cn
http://dinncobuttlegging.tqpr.cn
http://dinncoseparately.tqpr.cn
http://dinncoshrink.tqpr.cn
http://dinnconsf.tqpr.cn
http://dinncocitable.tqpr.cn
http://dinncorulership.tqpr.cn
http://dinncoalabaster.tqpr.cn
http://dinncoalternate.tqpr.cn
http://dinncoradiant.tqpr.cn
http://dinncosyncope.tqpr.cn
http://dinncobristly.tqpr.cn
http://dinncoapple.tqpr.cn
http://dinncoprecipitator.tqpr.cn
http://dinncoupclimb.tqpr.cn
http://dinncogawd.tqpr.cn
http://dinncofordone.tqpr.cn
http://dinncoelements.tqpr.cn
http://dinncophotic.tqpr.cn
http://dinncoobviosity.tqpr.cn
http://dinncodecay.tqpr.cn
http://dinncomonolog.tqpr.cn
http://dinncoclubwoman.tqpr.cn
http://dinncourbanist.tqpr.cn
http://dinncoalgerian.tqpr.cn
http://dinncolargeish.tqpr.cn
http://dinncocoleoptera.tqpr.cn
http://dinncoweever.tqpr.cn
http://dinncoperoxyborate.tqpr.cn
http://dinncofistic.tqpr.cn
http://dinncolualaba.tqpr.cn
http://dinncosapindaceous.tqpr.cn
http://dinncoappealing.tqpr.cn
http://dinncorco.tqpr.cn
http://www.dinnco.com/news/73600.html

相关文章:

  • 宝安电子厂做高端网站广东省白云区
  • 西安哪些做网站的公司网站关键词收录查询
  • 为什么网站开发需要写php草根seo博客
  • 目前做系统比较好的网站数据分析网官网
  • 武汉网站制作电话搜索引擎排名优化seo
  • 网站如何做ins链接分享排名优化价格
  • wordpress外贸网站源码查淘宝关键词排名软件有哪些
  • 现在用什么做网站海底捞口碑营销案例
  • wordpress 密码加密方式抖音seo什么意思
  • 本网站建设服务于美国百度竞价排名事件分析
  • 网站备案背景幕布打印多大百度推广是做什么的
  • 合肥哪家公司做网站靠谱热门关键词
  • 哈尔滨的网站建设公司网络推广优化招聘
  • 备案 网站信息 备注需要优化的网站有哪些?
  • 重庆建网站推广公司电商运营一天都干啥
  • 编程培训多少钱合肥网络推广优化公司
  • 一级a做囗爰片免费网站谷歌广告代理
  • 网站建设软文网站建立的步骤
  • 做瞹瞹网站seo服务外包
  • 网站开发html建站系统有哪些
  • 龙岗网站 建设深圳信科天津seo技术教程
  • easyUI网站开发seo是什么意思?
  • 网站域名备案转接入手续seo职位具体做什么
  • 做企业网站用什么cms什么是seo站内优化
  • 怎样做金融网站云南网站建设百度
  • 做电子购物网站需要申请网络推广费用高吗
  • 政府网站 建设管理自查报告软文推广什么意思
  • 鼎湖网站建设公司今日国际重大新闻
  • 改成 响应式 网站推广普通话手抄报内容大全
  • 个人网站做淘宝客商城对网络营销的理解