当前位置:网站首页>2. Leveldb design principle -- LSM
2. Leveldb design principle -- LSM
2022-06-24 17:23:00 【Xiao Lin Gang】
Concept
LSM(Log-Structured Merge Tree)
principle
characteristic
- Convert random writing into sequential writing , Write fast ;
- It may take several times to read data from the disk IO;
Data operation flow
Writing data
- Additional writing WAL journal ;
- Update in memory MemTable structure ;
Reading data
- Try from MemTable Query data in , Return if found ; If not found, go to the next layer to find ;
- Try from InmemTable Find data in ;
- Try from level0 Layer of SSTable Find data in file ;
- Use dichotomy from levelN Layer of SSTable Query data in file ;
- If no data is found , The returned data does not exist ;
Data merging (compaction)
边栏推荐
- Analysis of signal preemptive scheduling based on go language from source code
- A comprehensive understanding of fiber to home FTTH and optical splitter
- H265 video streaming web page without plug-in player easywasmlayer Troubleshooting and solution of JS unable to set cover photo
- Jmeter+grafana+influxdb build a visual performance test monitoring platform
- One article combs multi task learning (mmoe/ple/dupn/essm, etc.)
- How to get the response body content in gin?
- VBA Daniel used the nested loop
- IBM:以现代化架构支撑AI与多云时代的企业数字化重塑
- 2021-04-02: given a square or rectangular matrix, zigzag printing can be realized.
- liver failure! My friend made a programming navigation website!
猜你喜欢
随机推荐
Today, Tencent safety and SAIC Group officially announced!
Cloud native monitoring configuration self built alertmanager to realize alarm
Cloud development environment to create a five-star development experience
Explanation of MySQL indexing principle
liver failure! My friend made a programming navigation website!
Tencent cloud database mysql:sql flow restriction
主链系统发展解析
Realize business development on behalf of small programs, and 99% restore the function of service category management in the background of official account
See through the new financial report of Tencent music, online music needs b+c
Solution to the problem that qlineedit setting qdoublevalidator setting range is invalid
How much does the page length affect the ranking?
跟着Vam一起学习Typescript(第一期)
2021-04-02: given a square or rectangular matrix, zigzag printing can be realized.
How to convert XML to HL7
Tensor and tensor network background and significance - basic knowledge
Development analysis of main chain system
The problem is as big as the middle stage
Can yangjianyun's new media operation in 2021 bear all the expectations of the enterprise's private domain traffic demand?
[play with Tencent cloud] check 9 popular Tencent cloud products
[MySQL practice] binlog, a sharp tool for problem analysis

