Coder Social home page Coder Social logo

indexeddb's Introduction

A simple database implementation that takes command line or csv file input and stores data using linear hash indices that support overflow buckets and optimize memory utilization and reclaiming.

For compiling:

javac MainClass.java
This compiles all the files in the given folder.
This reads the file which is passed in the input argument.

Building a Heap File:
java MainClass test.hf -i -b1 -b3 "<" inputFile.csv

java MainClass test.hf -b1

Note: We have used 4k block size for the linear hash.

Query:

test.hf -s3 = 1950 -s4 = 1.75 -p1 -p2 > ex_result.acsv


Performance Comparision:

We have the initial csv file which has been given on the course page as the example input. 
We multiplicated the entries 204 times and made an index on -b3.
Total number of entries in Heap File were 3060.

Equality query on indexed column: 	Response time:  80,912,077 nanoseconds
Equality query on non-indexed column:	Response time: 273,664,220 nanoseconds

For 3000 entries, hash resulted in performance improvement by a factor of approximately 3.4.

For measuring performance, our program gives run time in nanoseconds on the console everytime it is run.

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.