mega icon indicating copy to clipboard operation
mega copied to clipboard

[Mono Server] Slow Retrieval of Directory-Related Commit Information

Open benjamin-747 opened this issue 1 year ago • 1 comments

The UI page needs to display commit information related to directories. However, the current process involves recursively traversing the commit history, which significantly impacts performance. An optimization solution is needed to speed up the retrieval of commit data without sacrificing accuracy.

related api: {{mega}}/api/v1/tree/commit-info?path=/third-part/mega

image

benjamin-747 avatar Sep 23 '24 03:09 benjamin-747

One possible approach could be to implement a lazy loading mechanism similar to GitHub’s, where commit information is loaded after directory.

benjamin-747 avatar Sep 23 '24 03:09 benjamin-747