Coder Social home page Coder Social logo

ndsldb's Introduction

最近在回顾架构设计过程中,发现了一些bug,该项目只能作为学习项目,还没有上线的能力。大家可以参考PebblesDB,它也能显著降低LevelDB写放大的问题

  1. 在垃圾回收器的设计上,现在是用db_->Get来判断vlog中某个kv对是否有效,但其实这个过程完全没有必要。只需要在合并过程中,记录需要删除的kv对信息,在垃圾回收过程中参照这些信息进行垃圾回后即可。现在的做法对IO影响应该会很大
  2. RealValue函数负责从vlog中读取实际的value,但是跟垃圾回收的过程有些冲突(vlog_manager)

ndsldb's People

Contributors

cmumford avatar ghemawat avatar davidsgrogan avatar pwnall avatar joker-qi avatar zmodem avatar paulirish avatar ssiddhartha avatar mikewiacek avatar tzik avatar pkasting avatar m3bm3b avatar guo-shaoge avatar davidair avatar ralphtheninja avatar jabdelmalek avatar digit-android avatar randomascii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.