Skip to content

Subfolder Search #37434

@zenith0212

Description

@zenith0212

Hello, everyone.
I am using nextcloud server, and I need some features, such as sub folder search. So I decided to modify nextcloud server code, and found depth variable of nextcloud. So I set this variable -1 and it seems to behavior right. But I found that number of sql queries increased very highly. Through some research, I know nextcloud uses recursive search and every search runs some queries in subfolder search. This is too heavy.
Why doesn't nextcloud reduce the number of queries?
Please see lib/private/files/view.php and cache.php.
Here, nextcloud request and build some sql queries. I modified cache.php. So the number of queries is reduced. But one question.
Why doesn't nextcloud use this method?
Annotation 2023-03-27 164410

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions