Skip to content

chore(frontend): improve camp dashboard performance#2763

Merged
pmattmann merged 3 commits into
ecamp:develfrom
usu:chore/dashboard-performance
Jun 13, 2022
Merged

chore(frontend): improve camp dashboard performance#2763
pmattmann merged 3 commits into
ecamp:develfrom
usu:chore/dashboard-performance

Conversation

@usu

@usu usu commented May 28, 2022

Copy link
Copy Markdown
Member

Had to base this on #2683, look for last commit only

Improves performance of dashboard view. Limits to 3 network calls instead if individual calls to each activity and each scheduleEntry.

A potential improvement could be to only load activities from API which I'm responsible for. However, impact is not large. And as an additional benefit, all data is already loaded if I switch to the picasso afterwards.

day.scheduleEntries() is now calcuated in memory, similar as in print:
https://github.com/ecamp/ecamp3/blob/devel/print/components/ProgramDay.vue#L36

This relation might also benefit, if we return individual scheduleEntry links instead of 1 single collection link (similar as contentNode->children).
@carlobeltrame: What do you think on this?

@usu usu changed the title Chore/dashboard performance chore(frontend): improve camp dashboard performance May 28, 2022
@usu usu mentioned this pull request May 28, 2022
7 tasks
Comment thread frontend/src/views/camp/Dashboard.vue Outdated

@manuelmeister manuelmeister left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice
Minor: use reduce

@pmattmann pmattmann merged commit 8ee9ede into ecamp:devel Jun 13, 2022
@usu usu deleted the chore/dashboard-performance branch November 6, 2022 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants