Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oc_filecache] Loading one million files #25995

Closed
dariodsa opened this issue Mar 8, 2021 · 4 comments
Closed

[oc_filecache] Loading one million files #25995

dariodsa opened this issue Mar 8, 2021 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement

Comments

@dariodsa
Copy link

dariodsa commented Mar 8, 2021

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

As you already know, Nextcloud has issues with loading a huge number of files. As I saw, reason is that for each file, Nextcloud does SELECT query on table oc_filecache. My first question i, what could be stored in oc_filecache that Nextcloud couldn't see from the disk? Second question, I would like to refactor a code so that if file_cache is set to 0 in config.php, Nextcloud wouldn't use oc_filecache at all. So I would like your opinion on that matter? That would probably load page slower, but in some case faster when number of files is huge.

Thanks,
Dario Sindicic

@dariodsa dariodsa added 0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement labels Mar 8, 2021
@dariodsa
Copy link
Author

dariodsa commented Mar 8, 2021

#23930

@SimplyCorbett
Copy link

SimplyCorbett commented Mar 9, 2021

Nextcloud is the metadata server for your files. All files use oc_filecache because it stores the file path among other details in that table.

I personally have not experienced issues with having a huge number of files. I've had millions of files on nextcloud with no issue.

The issue you linked to #23930 concerns loading a lot of files in one folder within the WebGUI... this is not the same as nextcloud being unable to handle millions of files.

Further, if you are using webdav with nextcloud you can easily load folders with millions of files. I've tested this on linux with dolphin. The problem is your (local) computer is going to have RAM and CPU usage through the roof trying to browse that folder.

tl;dr explain your problem in more detail.

@dariodsa
Copy link
Author

I analyse more detailed my environment and I saw that I am having performance issue with file locking using Redis. When file locking is disabled, Nextcloud renders page really quickly, but when file locking is enabled it simply times out(on folder with more than 7000 files). Is there something special which I should put in my Redis configuration?

@szaimen
Copy link
Contributor

szaimen commented Jun 25, 2021

Lets track this in #7312

@szaimen szaimen closed this as completed Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement
Projects
None yet
Development

No branches or pull requests

3 participants