-
Notifications
You must be signed in to change notification settings - Fork 356
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
[CORL-3172] optimized redis query for counts v2 endpoint #4660
[CORL-3172] optimized redis query for counts v2 endpoint #4660
Conversation
only shows if Tenor is toggled in `Admin > Config`, otherwise it uses Giphy
…-origin [CORL-3177]: update to grab the ORIGIN from the count.js script for
update package to 9.0.8
allows us to use the familiar g, pg, pg-13, r values everywhere and just map them from 1-4 for tenor when necessary.
add max width to tenor image
bump version
stack tenor gif results tightly in a cascade grid
…fore-premod [CORL-3174] Move external mod phases to run before pre-moderation
update package
✅ Deploy Preview for gallant-galileo-14878c canceled.
|
- avoid repeating string key interp everywhere
} | ||
}) | ||
const redisCounts = await redis.mget( | ||
...storyIDs.map((id) => computeCountKey(tenant.id, id)) |
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.
redis really likes it when you ask for everything all at once, its scheduler is great at grabbing n-many keys and returning it in a fast serialized payload!
allows us to see whether a count came from redis, or mongo
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.
Nice!
…imized-redis-query # Conflicts: # server/src/core/server/app/handlers/api/story/count.ts
What does this PR do?
These changes will impact:
What changes to the GraphQL/Database Schema does this PR introduce?
None
Does this PR introduce any new environment variables or feature flags?
No
If any indexes were added, were they added to
INDEXES.md
?N/A
How do I test this PR?
Were any tests migrated to React Testing Library?
No
How do we deploy this PR?