Skip to content
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

fix(tags performance): Cache tag counts on server and load them using initial state #1611

Merged
merged 4 commits into from
Jan 30, 2023

Conversation

marcelklehr
Copy link
Member

... and only fetch file lists when the corresponding tag is visible

This should greatly improves UX and performance of the tags view. Before, the popular tags would continuously jump around for dozens of seconds while the tag counts were being loaded from the server.

@marcelklehr
Copy link
Member Author

/backport e77a438 to stable25

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Jan 25, 2023
@szaimen szaimen added this to the Nextcloud 26 milestone Jan 25, 2023
@skjnldsv skjnldsv added enhancement New feature or request 3. to review Waiting for reviews labels Jan 25, 2023
lib/Controller/PageController.php Show resolved Hide resolved
src/views/Tags.vue Outdated Show resolved Hide resolved
@skjnldsv skjnldsv removed their request for review January 26, 2023 13:56
@marcelklehr
Copy link
Member Author

/backport e77a438,7284865,b2ada05 to stable25

marcelklehr and others added 2 commits January 30, 2023 13:45
… initial state

... and only fetch file lists when the corresponding tag is visible

Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: Louis <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr
Copy link
Member Author

/backport 8ba4c1e,ba7998f,055b2d7 to stable25

@marcelklehr
Copy link
Member Author

/backport 8ba4c1,ba7998f,62e1041 to stable25

@marcelklehr
Copy link
Member Author

/compile

… initial state

... and only fetch file lists when the corresponding tag is visible

Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr
Copy link
Member Author

/compile

Signed-off-by: nextcloud-command <[email protected]>
@marcelklehr marcelklehr merged commit deee01b into master Jan 30, 2023
@marcelklehr marcelklehr deleted the fix/tags-perf branch January 30, 2023 13:30
@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@marcelklehr
Copy link
Member Author

/backport 8ba4c1e,ba7998f05543afa78f87600b8b781bf08b5a8389,dee1b276b29a64a4c2dfbe07ef4467a809203a7f to stable25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants