Skip to content

Avatar performance improvements #22414

Closed
Closed

Description

@rullzer

Curerntly we just store the avatars in /<user>/avatar.jpg (or <user>/avatar.png). While this is simple it also has certain drawbacks. Like the bug we hit with #22119

Further more it would be great to also get avatars of trusted ownClouds locally since we have the vcards anyway.

  1. We should rethink where and how we store avatars (we should still cache generated avatars).
  2. We should actively start caching avatars client side
    • Allow caching of avatars... at least checking validating by etag
    • Your own avatar should be very limited cached since you can update that and want that to be reflected fast
    • Other users avatars can be cached much longer
  3. Our avatar javascript code has become somewhat big and unefficient.
    • We should start using promised (so each avatar is really only checked once per page load).

So basically we should rethink our avatar handling in general.

CC: @PVince81 @DeepDiver1975

Activity

  1. added this to the backlog milestone on Feb 16, 2016
  2. butonic commented on Jun 28, 2016

    @butonic
    Contributor

    Isn't the avatar something like a thumbnail?

    Or should we store it in a dedicated location?

    Maybe related #25213

  3. PVince81 commented on Jun 28, 2016

    @PVince81
    Contributor

    I'd suggest storing it outside of "/files" so we don't need a full FS setup just to access it.
    There are other related issues I met due to syncjob + ldap + avatar + email: #24423 (comment)

    Maybe a proper location would be "data/$user/avatar", then if there are multiple sizes they can just be stored there.

  4. PVince81 commented on Jun 28, 2016

    @PVince81
    Contributor

    I'm setting this to 9.2 because this have more consequences on performance and other nasty side effects.

  5. modified the milestones: , backlog on Jun 28, 2016
  6. DeepDiver1975 commented on Jun 28, 2016

    @DeepDiver1975
    Contributor

    I'm setting this to 9.2 because this have more consequences on performance and other nasty side effects.

    agreed

  7. PVince81 commented on Aug 12, 2016

    @PVince81
    Contributor

    Hmmm, just now I thought about modifying initMountsPoints to receive a second argument $homeOnly but realized it won't cover the cases where a cron job runs and wouldn't tear down all the FS. So the best solution is rather to invest time into removing the avatars from the filesystem layer and finding a way to access the avatar list that doesn't require a FS setup.

  8. PVince81 commented on Aug 12, 2016

    @PVince81
    Contributor

    PR to move avatars: #25790

  9. PVince81 commented on Nov 21, 2016

    @PVince81
    Contributor

    Is the solution from 9.2 that moves the avatars to separate folders already enough to move this ticket to backlog and decrease severity @DeepDiver1975 @butonic ?

  10. PVince81 commented on Dec 6, 2016

    @PVince81
    Contributor

    Decreasing severity to high

  11. PVince81 commented on Apr 11, 2017

    @PVince81
    Contributor

    moving to backlog for now.

    Time will tell whether the 10.0 solution of having a separate avatar folder is enough to reduce the severity of this issue. Additional tasks are still valid to further improve avatar handling.

  12. modified the milestones: backlog, 10.0 on Apr 11, 2017
  13. SamuAlfageme commented on Jan 9, 2018

    @SamuAlfageme

    Also linking #26872 here in case it contributes to decreasing severity and/or close.

  14. changed the title [-]The big avatar issue[/-] [+]Avatar performance improvements[/+] on Jul 5, 2018
  15. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions