-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Perf enhancement: load partial data for UI needs #10933
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
Conversation
Instead of all the datoms
Use search indice to search first and then filter the result by the db worker. This avoids using `d/datoms` which loads all the blocks to the memory.
Also, add a script to build a test graph
Also avoid calls to worker if a block has been fully loaded
1718231 to
b1bcc1b
Compare
Your |
I'm unable to reproduce this bug, is it on Web or Electron? |
I can reproduce this one, looking into it now. |
Confirmed the lower-case page bug is fixed. durm and other db graphs are loading faster. Thanks! Seeing a major improvement now at around 150ms |
re-init commands after pages has been loaded
It was on electron. I'm no longer able to reproduce so that's good |
@logseq-cldwalker This should be fixed now. I have to clear the worker requests if they haven't updated the db. |
logseq-cldwalker
left a comment
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.
Thanks for fixing the indent bug and the frontend tests. As discussed elsewhere I was able to see subsecond load times on a graph with 50k pages. Amazing work! 👍 🚀
|
@tiensonqin A bug I encountered on a browser db graph: Go to an existing journal page. Press |
also remove unused binding not caught by linter b/c it's used
Removed in 0d6c65e
publishing apps can take awhile to load so we want the loading to be obvious, not muted
@logseq-cldwalker I'll fix this in another commit. |
|
@logseq-cldwalker The bug has been addressed by cba42f1. |
|
Confirmed. Thanks! |
This ns is more appropriate in db and was only in graph-parser because the date-time-util lib wasn't accessible to db until #10933 landed. graph-parser dep is specific to file graphs and as much as possible anything unrelated to this should not be in this dep
This PR aims to reduce both the app start time and memory usage.
A demo with 30k pages:
https://www.loom.com/share/69a2b9d81be5416eb6f56bacb15daff6
TODO:
d/qandreact/qcallstest data sync from rtc