Skip to content

CeballosAndres/nosql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis vs mySQL

Install docker

# On macOS
brew cask install docker

Other OS How to

Run docker-compose

# Create
docker-compose up -d

# Recreate
docker-compose up -d --force-recreate

Access database

#MySQL
docker exec -it mysql-db mysql -p

#Redis
docker exec -it redis-db sh

Set Python environment

# Initialize virtual environment
python3 -m venv env

# Select virtual environment
source env/bin/activate # on macOS
# on Windows .\env\Scripts\activate  

#Install dependencies
python -m pip install -r requirements.txt

Test

# Test connections
python test_connections.py

# Run redis benchmark
docker exec -it redis-db redis-benchmark -q -n 100000


# Fill redis
python fill_redis.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages