O1sims / Sukasa

:house: Web application that detects and reports Northern Irish property price imperfections
http://www.sukasa.co.uk
MIT License
1 stars 1 forks source link

Store property IDs and other info in Redis #12

Open O1sims opened 6 years ago

O1sims commented 6 years ago

Problem

Instead of hitting the DB all the time when checking for existing properties, let's store the property IDs and some property info in a Redis DB so that we can just check items in memory.

Solution

Need to create a new Docker container that hosts an instance of Redis and exposes the relevant ports. Something like this:

redis:
  container_name: redis
  restart: unless-stopped
  image: redis:latest
  ports:
    - "6379:6379"

And make the main Sukasa application depend on this Redis container.

This issue will be carried out on the enhancement-redis branch.

O1sims commented 5 years ago

At the minute we are saving the property valuation model as a pickle file, which isn't good. Need to store pandas output in redis.