<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>数据库 on Just notes</title><link>https://linjiapeng.cn/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/</link><description>Recent content in 数据库 on Just notes</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://linjiapeng.cn/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/index.xml" rel="self" type="application/rss+xml"/><item><title>LSM 存储结构：从原理到应用，简单聊聊</title><link>https://linjiapeng.cn/posts/%E7%AE%80%E5%8D%95%E8%81%8A%E8%81%8Alsm/</link><pubDate>Wed, 28 Feb 2024 00:00:00 +0000</pubDate><guid>https://linjiapeng.cn/posts/%E7%AE%80%E5%8D%95%E8%81%8A%E8%81%8Alsm/</guid><description>&lt;h1 id="lsm-存储结构从原理到应用简单聊聊">LSM 存储结构：从原理到应用，简单聊聊&lt;/h1>
&lt;p>如果你对数据库或者存储系统有点兴趣，可能听说过 LSM（Log-Structured Merge-Tree，日志结构合并树）。它是大名鼎鼎的现代存储引擎（如 LevelDB、RocksDB、Cassandra 等）背后的核心数据结构。这篇博客会用尽量通俗的语言，带你搞清楚 LSM 是什么、怎么工作，以及为什么它这么受欢迎。&lt;/p></description></item><item><title>MVCC</title><link>https://linjiapeng.cn/posts/mvcc/</link><pubDate>Sun, 14 Jan 2024 07:07:07 +0100</pubDate><guid>https://linjiapeng.cn/posts/mvcc/</guid><description>&lt;h1 id="mvcc">MVCC&lt;/h1>
&lt;h2 id="须知">须知&lt;/h2>
&lt;p>&lt;strong>当前读&lt;/strong>：读取的都是最新版本，会对读取的内容进行加锁。&lt;br>
&lt;strong>快照读&lt;/strong>：读到的不一定是最新的版本，不加锁的非阻塞读，隔离级别不能是串行化，不然会退化成当前读。基于多版本并发控制（MVCC）实现的。&lt;/p></description></item></channel></rss>