Limit files picked up by OwnCloud, by date created

We present an SMB share over the WAN using ownCloud. The SMB share is 780GB, and close to one million files and 95,000 folders.

We have the problem that the web page takes a long time to render.

Is is possible to say to ownCloud “Only present folders created after x date…?”)

N.B - we can’t change the SMB share (i.e create an archive) as other systems use it.

Happy to make configure changes in shell.


Which version of ownCloud are you using? Which server OS? When opening a topic there is template with a checklist of all information required in order for people in this forum to be able to help you. Please use this template, or we can’t help you. It is there for this reason.

1 Like

It takes too much time to render, or to transfer the information between the SMB server and ownCloud?

As far as I know, the SMB protocol doesn’t support result filtering (provide a link to official docs if you find something). This means that filtering has to be done in ownCloud, after transfering 1,2,3MB (or more) of data. If the bottleneck is in the transfer, this won’t solve your problem because we still need to get all the data.

Now, for the rendering part, you say you want to show only some files, so what if the file you want isn’t present? you’ll have to request for more files. This means that, again, we need to ask the SMB server for the whole list and filter the data in ownCloud.
In any case, ownCloud decides to present all the files, so you can filter in the client the way you want without asking the server again. Even if only 20 files are shown, ownCloud still needs to write the information of all the files.

The best option would be to change the folder structure of your share. If the root folder of the share has the 95k folders, as said we need to request those 95k folder, so the trick is to split those into smaller folders.
In addition, you can try to disable the previews and maybe other things to speed up things.


Thanks - I will keep that in mind for the future. I left those out because if what I was asking for was only available in a later version, I would switch.

1 Like

Thanks. This is what I thought :slight_smile:

1 Like