JAWD-001 / peer_mentoring

Peer Mentoring Application
0 stars 1 forks source link

Chat optimization #78

Open JAWD-001 opened 1 year ago

JAWD-001 commented 1 year ago

Future Feature

Research improvements to optimize db queries for saving chat messages.

Thinking redis as a cache to store messages with some sort of persistence to then bulk create new chat message instances.

Research showed celery to create tasks to move message instances to the db from a redis cache based on time interval. Then recommends to store messages in one of two ways to prevent data loss before creating new messages instances in db.