Giter Site home page Giter Site logo

imdb_job-postgres's Introduction

join-order-benchmark

This package contains the Join Order Benchmark (JOB) queries from:
"How Good Are Query Optimizers, Really?"
by Viktor Leis, Andrey Gubichev, Atans Mirchev, Peter Boncz, Alfons Kemper, Thomas Neumann
PVLDB Volume 9, No. 3, 2015
http://www.vldb.org/pvldb/vol9/p204-leis.pdf

IMDB-S - 2013 May

The CSV files used in the paper, which are from May 2013, can be found at imdb harvard dataset

  1. download dataset
wget https://dataverse.harvard.edu/api/access/datafile/:persistentId?persistentId=doi:10.7910/DVN/2QYZBT/TGYUNU
  1. use pg_restore to restore the dataset
createuser imdb

pg_restore -d [database] \:persistentId\?persistentId\=doi\:10.7910%2FDVN%2F2QYZBT%2FTGYUNU
## e.g. pg_restore -d pei \:persistentId\?persistentId\=doi\:10.7910%2FDVN%2F2QYZBT%2FTGYUNU

bash ./switch_owner.sh

IMDB-L - latest version

The CSV files with the latest version can be found at http://homepages.cwi.nl/~boncz/job/imdb.tgz

The license and links to the current version IMDB data set can be found at http://www.imdb.com/interfaces

Step-by-step instructions

  1. download *gz files (unpacking not necessary)
wget ftp://ftp.fu-berlin.de/misc/movies/database/frozendata/*gz
  1. get imdbpy and the imdbpy2sql.py script
git clone [email protected]:cinemagoer/cinemagoer.git
pip install cinemagoer
pip install --force-reinstall "SQLAlchemy==1.4"
pip install psycopg2-binary 

cd cinemagoer/bin
python imdbpy2sql.py /directory/with/PlainTextDataFiles/ -u scheme://[user[:password]@]host[:port]/database[?parameters]
## e.g. python imdbpy2sql.py -d /home/pei/Project/benckmarks/imdb_pg_dataset/dataset/ -u postgresql://pei@localhost/pei

Note that this database has some secondary indexes (but not on all foreign key attributes). You can export all tables to CSV:

psql < export_csv.sql

To import the CSV files to another database, create all tables (see schema.sql and optionally fkindexes.sql) and run the same copy as above statements but replace the keyword "to" by "from".

imdb_job-postgres's People

Contributors

peimu avatar gregrahn avatar maxhalford avatar maahl avatar

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.