-
Notifications
You must be signed in to change notification settings - Fork 3k
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
HIGH: [Performance] Stop logging huge ID lists when nothing changes #38904
Comments
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext. |
We've been talking about the client, but I see a similar enormous log line on the server, basically all the time:
|
Is that also misleading? It really looks like it's returning an enormous (99% unchanged) dataset, are you sure it's not? |
Being worked on here: Expensify/react-native-onyx#517 |
yes, they are the same log. The client logs in the JS console also get sent to the server. |
This should have gone out with #38114 so on staging, but not production yet. Checked staging and see this:
So - seems to be working 🎉 |
is this done? Can it be closed? |
Yep, let's close it out. |
Problem:
When merging an Onyx value, it can sometimes log huge lines -- even if nothing changes. This is not just confusing when looking at the logs, but is probably slowing down the app (because logging is in general slow, and logging a 15KB logline pointlessly isn't great, especially when using "local logging" in mobile, which stores everything to Onyx, crippling the app after a few minutes).
Solution:
Only log the actual keys that change. I think @marcaaron might have already done this as mentioned here, but tracking it in this issue.
The text was updated successfully, but these errors were encountered: