开始我个人的理解,当 where 条件出现 or 或者 and 之类,有可能产生这种状况:postgres=# explain analyze select id,deptno from gaotab where id=100 or id=300; QUERY PLAN ---------------------------------------------------...
转载 2012-11-07 17:33:00
372阅读
2评论
D:\highgo\database\5.6.3\bin>psql -d highgo -U highgo -p 5868用户 highgo 的口令:psql (5.6.3)PSQL: Release 5.6.3Connected to:HighGo Database V5.6 Debug Edition Release 5.6.3 - 64-bit
sql
原创 2021-10-25 14:58:20
1029阅读
1、背景PostgreSQL中扫描的方式有:Sequence Scan:顺序扫描(全表扫描)。按顺序扫描所有页面Index Scan:根据索引列创建的索引进行扫描,速度快Index only Scan:SELECT 表的目标列都在索引键中,为了减少 I/O,仅索引扫描会直接使用索引中的键值索引扫描在读取表的非索引键的数据时,按照以下顺序:从索引页面获取TID->从heap中取数据->从
转载 2023-09-27 15:36:45
626阅读
1、什么是bitmap scan?bitmap scan是pg中表的扫描计划的一种。在pg中,对表的扫描计划有:Seq ScanIndex ScanBitmap Heap ScanIndex Only Scan对于bitmap scan这种,使用explain查看查询语句的执行计划,会得到类似如下的返回:bill=# explain select * from t1 where c1 =10 an
转载 2021-06-09 13:18:55
2983阅读
开始参考momjian 的文章:://momjian.us/main/writings/pgsql/optimizer.pdf首先,构造一个数据分布明显倾斜的表(有的值占据了70%以上的分布)postgres=# CREATE TEMPORARY TABLE sample (letter, junk) ASpostgres-# SELECT substring(relname, 1, 1), repeat('x', 250)postgres-# FROM pg_classpostgres-# ORDER BY random();SELECT 291postgres=#
转载 2012-11-09 08:52:00
139阅读
2评论
从MySQL的MRR开始 开始之前,先从MySQL入手,看一下MySQL中的MRR机制原理,也就是Multi-Range Read。MySQL中在按照非聚集索引的范围查找且需要回表的情况下,比如select * from t where c2>100 and c2<200;c2为非聚集索引。如果直接 ...
转载 2021-05-12 23:03:56
1969阅读
2评论
看源码的时候,看到了新的语法,scan,break scan。 下面源码摘抄于String.class的toUpperCase(Locale locale)方法 /* Now check if there are any characters that need to be changed. */
原创 2022-08-20 01:40:11
179阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
200阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
227阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
225阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
315阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。Why is my Exadata smart scan not offloading?Exadata Smart Scan and Index
原创 2011-11-20 00:00:00
703阅读
Component Scan is important concept when we want to create Bean. Currently we know what, for the class, we want to create Bean from it, we need to add
转载 2019-04-09 18:38:00
180阅读
2评论
一、重建scan监听 (1)查看集群各资源状态 crsctl stat res -t (2)停止现有scan监听 srvctl stop scan_listener (3)移除集群中scan监听 srvctl remove scan_listener (4)添加新的scan监听 srvctl add
转载 2021-06-29 09:27:00
268阅读
2评论
当我们需要遍历Redis所有key或者指定模式的key时,首先想到的是KEYS命令,但是
原创 2022-11-04 09:46:01
178阅读
Linux系统中的扫描工具是非常重要的,它们可以帮助用户快速而准确地扫描系统中的安全漏洞,以便及时采取措施加强系统安全。在Linux系统中,有很多优秀的扫描工具,其中一个备受关注的就是红帽“linux scan”。 红帽“linux scan”是一个功能强大的系统扫描工具,可以对Linux系统进行全面的扫描,发现潜在的安全风险,并提供有效的解决方案。它可以帮助用户快速定位系统中的漏洞和弱点,为系
原创 2024-03-22 10:33:16
141阅读
http://www.luocs.com/archives/281.htmlSCAN概念先介绍一下什么叫SCANSCAN(Single Client Access Name)是Oracle从11g R2开始推出的,客户端可以通过SCAN特性负载均衡地连接到RAC数据库。SCAN提供一个域名来访问RAC,域名可以解析1个到3个(注意,最多3个)SCAN IP,我们可以通过DNS或者GNS来解析实现
转载 精选 2013-09-14 11:27:49
781阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
1463阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
282阅读
实测了以下Exadata smart scan对于INDEX STORAGE FAST FULL SCAN似乎实际并不生效,详见以下测试。不仅普通的B*tree index也包括compressed index、reverse key index等类型。 Why is my Exadata smart scan not offloading? Exadata Smart Scan and Ind
原创 2011-11-20 13:13:59
221阅读
  • 1
  • 2
  • 3
  • 4
  • 5