Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix onSnapshot to only retrieve latest updates! #217

Closed
AlexanderWangY opened this issue Apr 13, 2024 · 0 comments
Closed

Fix onSnapshot to only retrieve latest updates! #217

AlexanderWangY opened this issue Apr 13, 2024 · 0 comments
Assignees
Labels
Backend📡 Issues corresponding to the backend/API. Hard You should be an active contributor to work on this issue Optimization Changes that makes functionality faster or use less memory

Comments

@AlexanderWangY
Copy link
Collaborator

So as of now, the onSnapshot listener in the backend listens to the message collections after Date.now() which ends up listening for EVERY message after a that query. Therefore, we must look into pagination and sorting/pre-processing to optimize message send times!

This issue is currently being worked on by @AlexanderWangY. Reach out if you feel like you can help out!

@AlexanderWangY AlexanderWangY added Optimization Changes that makes functionality faster or use less memory Backend📡 Issues corresponding to the backend/API. Hard You should be an active contributor to work on this issue labels Apr 13, 2024
@AlexanderWangY AlexanderWangY self-assigned this Apr 15, 2024
@AlexanderWangY AlexanderWangY closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend📡 Issues corresponding to the backend/API. Hard You should be an active contributor to work on this issue Optimization Changes that makes functionality faster or use less memory
Projects
Development

No branches or pull requests

1 participant