Skip to content

"Faces" frontend speed improvement #1827

Open
@Dymirt

Description

@Dymirt

Is your feature request related to a problem? Please describe.
I found that's frontend page 'faces' is fetching all photos for all faces, but shows only one smal pic of this person. May be there is an opportunity for a speed optimisation? Fatching only one main image of a person, and fetching the rest inside person page?

This is log from my terminal. Just to display a single person face I need to wait until 1235 files will be loaded.
[Debug] [DEBUG] photos: [FetchFacesMixin] Fetched 1235 new files: – {0: "99030", 1: "99159", 2: "99160", …} (photos-main.js, line 2)

Describe the solution you'd like
So I checkt, those files fatching is two times, one when loading 'faces' page, and one when its display photos per person. So there is a real opportunity, just removing fatching all files from 'faces' main page, and fatch only 1 pic per face. The problem seem to be in photos/src/mixins/FetchFacesMixin.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.enhancementNew feature or requestfeature: facesperformancesPerformances issues and optimisations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions