-
Notifications
You must be signed in to change notification settings - Fork 146
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(redis example): update for partial updates #1793
Conversation
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just the stray console.log
Love a bit of Lua with Redis!
// Loop through each message and make writes to the Redis hash for action messages | ||
messages.forEach((message) => { | ||
if (!isChangeMessage(message)) return | ||
console.log(`message`, message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left over console.log from debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I left it there on purpose actually as when playing with it it's nice to see the message log get outputted. For a production version yeah you wouldn't want it but I think it's nice for an example.
// FIXME The Redis docs suggest only sending 10k commands at a time | ||
// to avoid excess memory usage buffering commands. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth creating an issue for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh no. It's a very low priority for an example. It's more a note for someone taking this into production. Perhaps the first to use this at scale can update it.
Fixes #1789