![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
database
文章平均质量分 86
houzhizhen
专注大数据处理和分布式计算。
展开
-
数据库常见的物理优化算法
从 R 的block中依次读取记录,在 S 中查找是否有匹配记录,如果匹配,计算关联之后的记录,并拷贝到输出缓冲区。然后依次读取 R 中的记录,如果在 S 中找到,则删除。阶段1:从 R 读取数据到 M 个 buffer 中,并且在内存里对 M 个 buffer 的数据进行排序,然后输出排序之后的数据,成为一个子序列,子序列内部的数据有序。用 M - 1 内存存储已经见过的记录,即把已经见过的记录分成 M-1 个 bucket,则每读一条记录,则用在对应的 bucket 中查找是否已经见过这条记录。原创 2023-06-24 17:31:50 · 534 阅读 · 0 评论 -
SARGable predicate 是什么?
‘SARGable’ is a weird term. It gets bandied around a lot when talking about indexes and whether queries can seek on indexes. The term’s an abbreviation, ‘SARG’ stands for Search ARGument, and it means that the predicate can be executed using an index seek.转载 2021-08-06 16:45:12 · 186 阅读 · 0 评论