Giter VIP home page Giter VIP logo

tychydb's Introduction

tychyDB

tychy and yokonao challenge to implement relational database

setup

Please run the following command for install dependencies.

make install

Command

// run all test
make test

// run linter
make lint

tychydb's People

Contributors

tychy avatar yokonao avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

blastbao

tychydb's Issues

WALの実装

TODO

  • Redoログの実装
  • LogFileへの永続化
  • リカバリーの実装

sequentialなLogFileへの書き込みが行われるが、書き込みの先頭のページをどうやって保持するのか

  • flushedLSNをユニークな数字として保持する方法 (trivial)
  • flushedLSNをページ内の位置とし保持する方法 (管理が大変そうだが、特にundo時に一つ前のlogをたどるのにlogFileの走査が必要なくなる)
    必ずしもどちらかを選ぶというわけではないが、方向性を決める必要がある

リカバリー

あるコミットされたトランザクションについて、Logを永続化した段階でバッファープールを落とす。
その状態でリカバリーを実行できるようにしたい。

ダーティページテーブルがそもそも必要なのか、という点についても調査する必要がある。
トランザクションは1つ(Concurrentではない状況)を想定するので、トランザクションテーブルは作らない

SQLのparserの実装

SELECT文 = select (カラム名) from (テーブル名) 条件式...
条件式 = 生の条件式 | and/or 条件式
生の条件式 = カラム名 (>, <, ...) 値 | カラム | 値

PageとB+Treeの実装の分離

現在Pageの実装はB+TreeのノードとしてのPageの実装とほぼ同一である。
しかし、B+Treeはindexingにすぎないのでどこかで分離するべきか検討する。

testを改良

use pattern like if val := res[1][3]; val != 3337 {}

命名規則の統一

  • buf, buffの揺れ
  • キャメルケースになっていない関数を治す
  • UInt32 -> Uint32
  • unpin -> unPinにするべきか考える

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.