owncloud / owncloud/ocis

Listing shares becomes slow

Open
#7,112 1 comment 0 reactions 0 assignees View on GitHub
Topic:Performance Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

When shares accumulate listing shares becomes slow because the ocs implementation has to enrich every share with user and file metadata, causing one Stat and GetUser request per share. Currently, the stat cache is turned off. We should probably reenable the stat cache.

As a workaround setting `FRONTEND_OCS_STAT_CACHE_STORE=memory` or `redis` for distributed deployments will allow ocs to reuse stat requests for already statted resources.

In the code we could process the list of received and created shares concurrently.

![grafik](https://github.com/owncloud/ocis/assets/956847/2cb612cb-1a26-4d31-ae57-1b099ee3166e)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.