Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
/ SqliteCaching Public archive

Quarter long project for CSC 560 Databases

Notifications You must be signed in to change notification settings

jangeja/SqliteCaching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Extending Sqlite with a custom caching algorithm

The team wants to add a caching feature to SQLite if one is not present. If a caching algorithm exists, the team aims to modify the caching algorithm to improve performance.

Prerequisites

What things you need to install the software and how to install them. Must be run on a linux machine

  1. apt-get install cmake

  2. apt-get install tcl

Getting Started

Compiling

  1. cd Development/sqliteSrc
  2. Execute this command within the directory that contains the source code. The -DALGORITHM_EVICTION flag is used to specify the eviction algorithm to be used
   -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1
   -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_EXPLAIN_COMMENTS
   -DHAVE_USLEEP -DHAVE_READLINE
   shell.c sqlite3.c -ldl -lreadline -lncurses -c -o sqlite3.o -DALGORITHM_EVICTION
1. -DQUEUE_EVICTION This is the standard sqlite3 eviction algorithm,
  FIFO.
2. -DSTACK_EVICTION LIFO
3. -DSECOND_CHANCE_EVICTION
4. -DCLOCK_EVICTION
5. -DWILD_WEST_EVICTION
  1. cp sqlite3.o ../test/sqlite3.o
  2. cd ../test
  3. cmake .
  4. cd build
  5. make

Initializing databases

  1. cd Development/test/build
  2. ./config This ussually takes about 10-20 minutes to create all the tuples

Running Tests

  1. cd Development/test/build
  2. ./speedTest Results will begin to be printed to the screen

Built With

  • SQLite - Open source DBMS used

Authors

See also the list of contributors who participated in this project.

Acknowledgments

  • Professor Stanchev
  • Cal Poly
  • Friends and Family

About

Quarter long project for CSC 560 Databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published