Git Product home page Git Product logo

dbaas's Introduction

DBaaS

To use this repo you have to install docker and docker-compose on your system. Further, python3.6 and pip is required.

Getting Started

For preparation clone this repository and download the two database dumps from the following sources:

After that move the two dumps into the docker/data folder.

cp eosm_ch.sql docker/data
cp sakila.sql docker/data

Now you are ready to run the containers:

docker-compose build
docker-compose up

The PostGraphile and PostgREST Api should be reachable under:

PostGraphile

Run: (previously, install the dependencies mentioned in the requirements.txt)

python3 graphql_requests.py

Notes

  • ORDER BY multiple columns -> @graphile-contrib/pg-order-by-related
  • GROUP BY not possible -> Views
  • SUM not possible -> Views (wip @graphile/pg-aggreates)
  • Nested Queries not possible -> View (7a..)
  • Extended docs would be nice

Used plugins:

  • postgraphile-plugin-connection-filter
  • @graphile/postgis
  • @graphile-contrib/pg-order-by-related
  • @graphile/pg-aggreates (doesn't work until now)

PostgREST

Run: (previously, install the dependencies mentioned in the requirements.txt)

python3 postgrest_requests.py

Notes

  • Nice API Doc / Swagger (http://postgrest.org/en/v5.2/api.html)
  • Aggregations not possible (COUNT, SUM) -> Views
  • Nested Queries not possible -> Views
  • Multiple Join Filter results in null -> Change direction (7c)
  • No Geo-Spatial queries -> Views

ToDo

  • pg_prewarm
  • average query time
  • pgTune
  • osm_stops reference to didok_stops for postgraphile
  • Prepare slides for a presentation (mention requests.elapsed.total_seconds)

Impressions

EOSM_Postgraphile EOSM_PostgREST

SAKILA_Postgraphile SAKILA_PostgREST

dbaas's People

Contributors

murthy10 avatar

Watchers

 avatar  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.