GithubHelp home page GithubHelp logo

eachsaj / autoindex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shankur/autoindex

0.0 0.0 0.0 12 KB

Code used for the Arvix report: The Case for Automatic Database Administration using Deep Reinforcement Learning

Python 100.00%

autoindex's Introduction

Repository Detail

This repository hosts the code for the prototype implementation used in the following paper:

The Case for Automatic Database Administration using Deep Reinforcement Learning

Installing Dependencies

General dependencies

pip install gym psycopg2 tensorflow keras numpy pandas matplotlib

Reinforcement Learning library

pip install keras-rl

Custom pip package to run queries on TPC-H Schema

cd postgres-executor
python setup.py sdist
pip install --upgrade dist/PostgresExecutor-0.1.tar.gz

Custom gym environment for database

pip install -e gym_dgame

DB2 installation

  • DB2: install as root
  • switch to db2inst1 user, then connect to db
  • Python connector: easy-install-3.6 ibm-db

Store data from CSV into Postgres instance

  • \copy lineitem from 'path to csv' delimiter '|' csv;
  • make sure that the last delimiter character near the end of the file is removed.
  • sed 's/.$//' lineitem.tbl > lineitem_smooth.tbl

autoindex's People

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.