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

Consider batching create/update record requests in JS #56615

Open
snickell opened this issue Feb 16, 2024 · 0 comments
Open

Consider batching create/update record requests in JS #56615

snickell opened this issue Feb 16, 2024 · 0 comments
Assignees
Labels
optimization unfirebase https://github.com/orgs/code-dot-org/projects/4

Comments

@snickell
Copy link
Contributor

snickell commented Feb 16, 2024

Right now we do a browser=>rails=>db round-trip for every create_record call, which there could be very many per second. If we don't like the load we're seeing on the server, since we don't have onRecordEvent anyway, it might make sense to cache create_record calls, say every 0.5s, and batch execute them (which our backend API allows for).

We can decide this as we investigate switching a small number of projects on prod, and see how the loading looks.

@snickell snickell added the unfirebase https://github.com/orgs/code-dot-org/projects/4 label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization unfirebase https://github.com/orgs/code-dot-org/projects/4
Projects
None yet
Development

No branches or pull requests

2 participants