-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Notebook] Many network calls generated when a single entry is added #5641
Comments
We could optimize this and look into asking for all tags for a notebook instead of per entry? |
Yes, but there's also another issue - when a notebook get synced by CouchDB, the domain object get updated, which triggers a computation for annotationQuery (in NotebookEntry.vue) even if there is no change to the entry or tags. |
In that case, we’ll need a way to know that tags haven’t changed. |
I've reduced the network calls to a constant. The network calls are also no longer growing with the length of entries. |
Closed by #5763 |
Verified Testathon 09/30/22:
|
Please retest with notebook tagging |
Need better verification instructions before we sign off on this. Testing notes: Testathon 10/4/22: Seeing 9 requests per tag. Seems to be the same number no matter how many entries or tags are present on the notebook page. |
@scottbell What would constitute verification of this fix? how many requests should we now expect? |
@ozyx @akhenry Per the e2e tests, 9-12 sounds about right: |
@ozyx to test |
Verified Testathon 10/6/22. Adding entries and tags always makes the same number of requests. ~2 for adding/removing entries, and ~9 for adding tags, ~4 for removing tags.. The number of network requests does NOT increase as the number of entries / tags increase. |
Summary
I was noticing that my tag notebook edits were taking a long time to apply in a larger notebook while accessing a viper deployment on the VPN. I opened up the network tab and saw the following
After creating a Notebook with 15 entries, entering the 16th and 17th entries causes
107 network requests which take 4 seconds to resolve.
Steps to Reproduce
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: