第五课(二)|学习笔记

简介: 快速学习第五课(二)

开发者学堂课程【高校精品课-西安交通大学-数据库理论与技术:第五课】学习笔记,与课程紧密联系,让用户快速学习知识。

课程地址:https://developer.aliyun.com/learning/course/12/detail/15861


第五课(二)

 

内容介绍

一、Data Guides

二、Existence of Multiple DataGuides

三、Annotations

四、Strong Data Guides

五、Mapping Long Records to Pages

六、Allocation and Free-Space Management

七、文件组织

八、文件中的记录组织

四、Strong Data Guides

We define a class of DataGuides that supports annotations as described in the previous subsection.

Intuitively , we are interested in DataGuides where each set of label paths that share the same ( singleton ) target set in the DataGuide is exactly the set of label paths that share the same target set in the source. 

Definition 7.:Consider OEM objects s and d where d is a DataGuide for a sources.Given a label path l of slet Ts(l) be the target set of l in s, and let Td(l) be the ( singleton ) target set of l in d. Let Ls(l) = { m | Ts(m) =Ts(l)}. That is, Ls(l) is the set of all label paths in s that share the same target set as l.Similarly,let Ld(l)={ m | Td(m)=Td(l) }. That is, Ld(l) is the set of all label paths in d that share the same target set as l. If, for all label paths l of s, Ls(l) = Ld(l), then d is a strong DataGuide for s. 

For example , Figure 3(c) is not a strong DataGuide for Figure 3(a). The source target set Ts(B.C)is {6,7},and the DataGuide target set Td(B.C) is {20}.

In the source, Ls(B.C) is {B.C}, since no other source label paths have the same target set. 

In the DataGuide(c),however,Ld(B.C)is{B.C,A.C}. SinceLs(B.C)# Ld(B.C), the DataGuide is not strong.The reader may verify that Figure 3(b)is in fact a strong DateGuide 

Next, we prove that a strong DataGuide is sufficient for storage of annotations.

Theorem 1:Suppose d is a strong DataGuide for a source s. lf an annotation p of some label path l is stored on the object o reachable via l in d,then p describes the target set in s of each label path that reaches o.

We also prove that a strong DataGuide induces a straightforward one-to-one correspondence between source target sets and DataGuide objects.This property is useful for incremental maintenance and query processing.

Theorem 2:Suppose d is a strong DataGuide for a source s.Given any target sett of s,t is by definition the target set of some label path l.Compute Td(l),the target set of l in d,which has a single element o.Let F describe this procedure, which takes a source target set as input and yields a DataGuide object as output. In a strong DataGuide,F induces a one-to-one correspondence between source target sets and DataGuide objects.

 

五、Mapping Long Records to Page

1.Long Pages

(1)Allows long pages (up to 64K bytes).

(2)Internally, long records are managed just as short ones.

(3)Simple solution, but inadequate for very large records.

(4)Used in DB2 and Oracle.

2.Separate Pages for Long Fields

(1)Instead of keeping entire long field in a record.

(2)maintains only a pointer to the long field stored in another page.

(3)The main record is then treated as a short tuple.

(4)Good results if long attributes are accessed infrequently.

(5)Unfortunately, performance suffers in situations when ong attributes are accessed frequently.

 图片254.png

 

六、Allocation and Free-Space Management

1.Free-Space Information Pages

Advantages:

(1)FSIPs need not always be updated during allocation and deallocation.

(2)Deallocations are relatively fast and simple

(3)Provides good storage utilization and reclamation(回收) of free and unused space.

Disadvantages:

Allocations may require several disk accesses.

部分习题如下:

图片255.png

图片256.png

相关文章
|
JavaScript 前端开发 算法
JavaScript 中的 if 判断:深入理解、实战应用与进阶技巧
【4月更文挑战第7天】探索 JavaScript 中的 if 判断语句,它是构建逻辑清晰程序的基础。了解其概念、语法、应用示例及编程技巧,包括条件控制、else if 结构、三目运算符。注意条件表达式简洁性,避免 falsy 值陷阱,利用逻辑运算符优化,并减少 if 嵌套。实践这些技巧将提升编程能力和代码质量。
1105 0
|
11月前
|
存储 弹性计算 Linux
2026年阿里云服务器优惠活动全解析:覆盖多用户群体的权益汇总
阿里云推出多维度云服务器优惠活动,涵盖轻量应用服务器、ECS 实例等核心产品,针对个人、学生、企业及老用户设计差异化权益,核心包括限时抢购、长效低价、专属优惠券等形式,适配从入门开发到企业级部署的全场景需求,以下是活动详情与选型参考。
|
9月前
|
SQL 存储 关系型数据库
SQL 性能优化全解:从执行计划到底层逻辑,根治 99% 的慢 SQL 与规范落地
本文系统讲解MySQL SQL性能优化,聚焦执行计划(EXPLAIN/ANALYZE)解读、慢SQL根治方案(索引设计、联表/分页/排序优化)、开发规范及MyBatis-Plus工程实践,破除常见误区,助力开发者从原理到落地全面提升数据库性能。
669 2
|
10月前
|
存储 人工智能 监控
大模型显存优化实战手册:如何用有限显卡训练百亿参数模型?
AI博主maoku详解大模型显存优化:直击OOM痛点,拆解参数/梯度/优化器/激活值四大显存“大户”,揭秘1:1:6内存占比规律;实操九大技巧——梯度检查点、BF16混合精度、CPU卸载、算子融合等,并验证8卡80G全量微调72B模型的落地效果。省钱、提效、普惠,一文掌握显存优化核心方法论。(239字)
|
9月前
|
Linux API 数据安全/隐私保护
零基础零技术OpenClaw极速部署指南:阿里云+本地三系统+iMessage快速接入图文教程
对于零基础、零技术背景的用户而言,部署OpenClaw(Clawdbot)并实现iMessage接入往往面临“步骤复杂、命令难懂、配置繁琐”的困境,市面上部分收费教程不仅冗余,还暗藏安全风险。事实上,OpenClaw本体开源免费,无需专业技术,只需遵循标准化流程,即可快速完成阿里云云端部署、本地MacOS/Linux/Windows11三端安装,同时实现iMessage快速接入,搭配阿里云百炼Coding Plan免费大模型或其他免费API,就能拥有专属AI自动化助手,完成信息检索、任务执行、消息联动等功能。
828 0
|
传感器 算法 物联网
基于UWB和蓝牙信标的医院人员精准定位技术从原理到应用详解
本文介绍基于UWB与蓝牙Beacon的医院人员精准定位技术,融合物联网低功耗、智能感知优势,实现高精度实时定位。通过部署信标与基站,采集信号并结合自研算法解算位置,支持实时监测、智能预警、数据分析及视频联动,提升智慧医疗与疫情防控能力,助力医院智能化管理。
基于UWB和蓝牙信标的医院人员精准定位技术从原理到应用详解
|
12月前
|
缓存 运维 监控
一场FullGC故障排查
针对JVM中大对象引发频繁Full GC的问题,可采取“治本”或“治标”两类方案:一是将数据移出内存,存入Redis等缓存系统,从根本上避免内存压力;二是优化对象结构,删除无用字段,减少内存占用。前者效果彻底但改造成本高,后者改动小但极端场景下仍存风险。排查时应结合GC日志、堆快照与监控工具定位根源,通过代码分析与现象验证解决问题,并根据实际场景选择合适策略。
|
安全 网络安全 持续交付
【2025最新渠道】免费SSL证书不限量申请
当网站缺乏SSL证书时,用户访问会收到“不安全”警告,影响用户体验和SEO排名。小林的创业公司因成本问题未能及时安装SSL证书,导致用户流失。传统SSL证书存在成本高、操作复杂、维护难等问题。现在,限时免费SSL证书提供无限次申请,覆盖所有子域名,支持自动化部署与终身护航,采用RSA 2048位加密,确保安全无忧。
|
设计模式 Java 应用服务中间件
多个Filter的执行顺序 | 职责链模式应用
多个Filter的执行顺序 | 职责链模式应用