
CMU15-445
文章平均质量分 91
NOTES &LABS
Tototototorres
态度端正不摆烂
展开
-
【CMU15-445 Part-17】Two-Phase Locking
S-LOCK 共享锁 for readsX-LOCK 排他锁 for writes上述T1最后R(A) 会导致不可重复读。原创 2023-10-07 14:20:50 · 167 阅读 · 0 评论 -
【CMU15-445 Part-16】Concurrency Control Theory
架构概念。原创 2023-10-06 22:30:06 · 231 阅读 · 0 评论 -
【CMU15-445 Part-15】Query Planning & Optimization II
维护每张表中的基本主要信息也就是tuple数量NR以及每个属性中不同值的数量VARNR关系R中的元组数量,单独维护,不能用page * 每个page中的tuple数,因为mvcc 或者 填不满tuple。selection cardinality (SC(A,R)) 选择基数,tuple数量除以属性A下 去重之后值的数量来计算出。假设数据均匀分布,data uniformity。原创 2023-10-06 22:29:35 · 233 阅读 · 0 评论 -
【CMU15-445 Part-13】Query Execution II
查询执行原创 2023-09-29 23:33:22 · 222 阅读 · 0 评论 -
【CMU15-445 Part-14】Query Planning & Optimization I
QUERY OPTIMIZATION原创 2023-09-29 23:31:06 · 174 阅读 · 0 评论 -
【CMU15-445 Part-12】Query Execution I
Processing Model主要指的是明确如何去执行一个查询计划(top 2 bottom or bottom 2 top,operator之间的传递)。原创 2023-09-27 16:27:04 · 199 阅读 · 0 评论 -
【CMU15-445 Part-11】Join Algorithms
Join其实是关系数据库和范式化表时候所产生的副产物原创 2023-09-16 17:24:29 · 169 阅读 · 0 评论 -
【CMU15-445 Part-10】Sorting and Aggregations
查询计划指的是指令或者是数据库系统如何执行一个给定查询的方式。整个查询计划是树形结构或者有向无环图。Logical Plan:先SCAN A,交给join operator,SCAN B,对B进行filter后交给join operator,然后join oper把结果传给projection operator。使用buffer pool manager来对查询的中间结果进行落盘操作。原创 2023-09-16 17:19:06 · 156 阅读 · 0 评论 -
【CMU15-445 Part-9】Multi-Threaded Index Concurrency Control
多线程下索引的并发控制。原创 2023-09-16 17:16:28 · 124 阅读 · 0 评论 -
【CMU15-445 Part-8】Tree Indexes ii
Index原创 2022-12-04 23:22:17 · 314 阅读 · 0 评论 -
【CMU15-445 Part-7】Tree Indexes i
B+ Tree原创 2022-11-13 00:05:51 · 394 阅读 · 0 评论 -
【CMU15-445 Part-6】Hash Tables
hash table原创 2022-10-31 13:40:35 · 224 阅读 · 0 评论 -
【CMU15-445 Part-5】Buffer Pools
Buffer Pools 原理 of Database原创 2022-10-25 13:48:29 · 314 阅读 · 0 评论 -
【CMU15-445 Part-4】DatabaseStorage ii
存储模型原创 2022-09-13 23:13:24 · 286 阅读 · 1 评论 -
【CMU15-445 Part-3】DatabaseStorage i
存储Disk Manager => 缓冲池管理 Buffer Pool Manager => Access Methods => Operator Execution => Query Planning需要了解哪些API下层提供给上层。原创 2022-09-05 20:45:43 · 354 阅读 · 0 评论 -
【CMU15-445 Part-2】Advanced SQL
包括DML(Data Manipulation Language) DDL(Data Definition Language) DCL(Data Control Language) ,还有视图定义、integrity完整性、referential Constraints参照约束,Transcations。像聚合函数,会对一堆tuple进行某些函数的计算,对tuple子集计算,可以以增量方式或者移动方式进行操作。但是仍然以tuple输出结果,即输出每一行的数据并且在后面追加一个聚合字段所表示的数据。.....原创 2022-08-26 00:52:52 · 475 阅读 · 0 评论 -
【CMU15-445 Part-1】Introduction And Relation Model
CMU15-445 第一部分notes原创 2022-08-11 01:05:12 · 289 阅读 · 0 评论