Skip to content

testdrivenio/postgres_vs_dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamoDB vs. Postgres Examples

This repository supports tutorial DynamoDB vs. Postgres - Which database to choose for your Python project?.

How to run the code

Start the databases

$ docker-compose up -d

Create virtual environment

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt 

Fill the databases with data

$ export PYTHONPATH=$PWD:$PYTHONPATH
$ (venv) python fill_data/create_table_dynamodb.py
$ (venv) python fill_data/create_table_postgres.py

Run the examples

$ export PYTHONPATH=$PWD:$PYTHONPATH
$ (venv) python queries/list_all_by_owner_dynamodb.py
$ (venv) python queries/list_all_by_owner_postgres.py

You can do the same for other scripts in queries directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages