feat(server): library statistics performance and offline count#26406
Draft
feat(server): library statistics performance and offline count#26406
Conversation
018913a to
e2d3d53
Compare
e2d3d53 to
6982987
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When there are a few 100k assets in an external library, the server stats, library list, and library view all load very slowly since they wait for the library statistics to load. In the future we'll speedup that API call but I also think it should lazy load those stats, making the page load immediately. This is the main feature of this PR.
Also, we add offline count to the library statistics. Right now, there is no way for the user to see this information. We have also removed offline files from the photo and video count.
Added a counter at the bottom of the library view to show the offline number. In the future, the user should be able to browse offline files for a library.