Code Monkey home page Code Monkey logo

Comments (4)

bluebore avatar bluebore commented on May 20, 2024

这个和 @xupeilin 讨论过,硬链接没有高效的实现,比如我要对一个db做硬链接,只能遍历所有文件,逐个处理。

from bfs.

yvxiang avatar yvxiang commented on May 20, 2024

刚扫了一下目前tera中的实现,如果我没理解错的话,应该是找出splitkey,然后修改元数据表,但实际上leveldb并没有作改动?
而另一种方案是既修改tera中的元数据表,又修改leveldb中的manifest。
相对于第一种方案来讲,第二种方案的优势在于什么?因为也是相当于只修改的元数据,但是sst文件中的元数据并没有变化,查找某个kv对时,仍然先需要在整个sst文件的block元信息中进行查找(不知道这里我对leveldb的理解对不对……目前正在读其源码)

from bfs.

bluebore avatar bluebore commented on May 20, 2024

没发现第二种有什么优势,既然修改元数据就可以了,就没必要修改manifest了
毕竟修改manifest这个操作,很难做到原子的

from bfs.

yvxiang avatar yvxiang commented on May 20, 2024

了解~

from bfs.

Related Issues (20)

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.