Coder Social home page Coder Social logo

entrydb's Introduction

a simple db inspired of mit6.830

Usage

create data files with the following command:

java -jar dist/simpledb.jar convert work/log/data1.txt 2 "int,int"

start parser with the following command:

java -jar dist/simpledb.jar parser work/data/catalog1.txt

entrydb's People

Contributors

leiwingqueen avatar

Stargazers

 avatar  avatar

Watchers

 avatar

entrydb's Issues

replace zql to other sql lib

couse the zql lib is not maintain any more, we can try to use a more powerful sql tool lib to handle this job

remove dirty page hash map in BtreeFile.java

As mention in lab5.md, we use dirty pages cache to mark if the page dirty.

BTreeFile.getPage() also adds pages to the dirtypages cache if they are fetched with read-write permission, since presumably they will soon be dirtied. One advantage of this approach is that it prevents loss of updates if the same pages are accessed multiple times during a single tuple insertion or deletion.

this solution will come up some problem. if we need to evict some page to get some page from disk, we can find some pages are not dirty but they actually in dirty page cache. because we will mark the page dirty later. for some case is more worse, as we find need to evict those error marked page, we will lost some update that we think the page is not dirty and just remove it from buffer pool.

i think dirty page is not necessary and remove the dirty page cache.

add user guide

add user guide to tell people how to use the project. you need to test the whole project at the first time

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.