oracle 索引列更新变慢
来源:互联网 发布:淘宝上真正的原单包店 编辑:程序博客网 时间:2024/04/29 07:03
前段时间维护数据需要将一张千万数量级表中cardno长度为9的数据cardtype更改为其他值,在cardtype和cardno上建有索引,
开始用 update card_table set cardtype='X' where cardtype='A' and length(cardno)=9 and rownum<100000
速度很快,过一段时间之后发现速度越来越慢;即使是查询
select count( cardno ) where cardtype='A' and length(cardno)=9 and rownum<100000 速度也很慢;
推测是由于做rangescan的时候 扫描太多不满足条件的数据,于是加上 index_desc的hint,果然查询快了很多
于是将更新修改为 update card_table set cardtype='X' where cardtype='A' and cardno like '1%' and length(cardno)=9 and rownum<100000
限定更新范围,果然速度有所提升。
- oracle 索引列更新变慢
- 解决oracle速度变慢
- 【Oracle 11g】为何加了索引反而查询变慢
- 数据库突然变慢...索引作怪!
- oracle 无效列索引
- oracle net listen 变慢的解决方法
- Oracle数据库为什么变慢了?
- 6.2 Oracle数据库为什么变慢了?
- Oracle安装之后电脑变慢
- MYSQL使用索引导致查询变慢的例子
- 走主键索引的查询sql变慢的问题
- solr大量索引信息导致搜索变慢
- Vs2005 "正在更新 IntelliSense" 导致编译变慢
- SQLServer2008更新数据后查询变慢,从MSDN摘录
- 针对Ubuntu更新后系统变慢的解决办法!
- oracle列变成行逗号分隔
- Oracle 表删除大量数据后查询变慢问题
- Oracle 表删除大量数据后查询变慢解决
- Fragment 介绍
- zend debugger 远程调试(win 5.2和linux 5.3遇到的问题)
- 今天,你被编译器耍了么?
- 忘记密码功能
- wave 档格式
- oracle 索引列更新变慢
- 简单的小知识(不断更新)
- 层次分析法步骤
- DateFormat类(国际化日期)
- Storyboard学习要点(iOS5新特性学习之二)
- Project has no default.properties file! Edit the project properties to set one.错误解决方法
- 《敏捷个人》学习笔记 - 如何经营博客
- (转)在虚拟机中添加一个hard disk
- ubuntu如何修改默认的文件关联打开程序