perf: cache negative results in LockSerivice::getLockForNodeIds#1057
perf: cache negative results in LockSerivice::getLockForNodeIds#1057icewind1991 wants to merge 2 commits into
Conversation
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
/backport to stable33 |
|
@icewind1991 If we prefill the One way to deal with this, would be to also call What do you think, how should we best deal with this, to make it work with federation? |
|
It probably makes sense to cache the local and federated locks separately. Federated locks also currently have the problem of loading the locks one by one instead of doing a single propfind to load the locks for an entire folder at once. |
As discussed I will work on these changes. |
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
894320c to
e523ee3
Compare
Currently it only stores results in the cache if the file has a lock, meaning that
getLockForNodeIdsstill ends up doing a query for every file without a lock.