This is a better approach because you can store whatever data you need in you own table for your own app, and set the DB indexes you need. They might want just a small set of files, not all of them. It's better if they manually select what files they don't want to be duplicated. The other option is to write an independent script to use fdupes and run it via cron. The point is that duplication detection is a real need that some people have. There is fslint, fdupes, dupeGuru, SearchMyFiles, Duplicate Files Finder and others. Note that, in addition, I don't think any FS has the option to detect duplicate files, so I wonder if ownCloud can implement this. I would have to investigate the details more, but perhaps searching the filecache table might indeed be sufficient. I think such app will be a waste of time and won't work as everyone would expect.Īll we need is to run this search every time a file is added, or a name changed I suppose. This particular use case is that all files are stored in one user's space and they want to know, for example, if someone uploads a duplicate file with the name Video-Venice Beach-2014-June.mp4 because given they way they are used to storing their data, that would be a red flat that they would want to be alerted to in order to investigate. Now, why do you want to detect duplicates? ownCloud provide its own storage view to each user. Note that, in addition, I don't think any FS has the option to detect duplicate files, so I wonder if ownCloud can implement this.Ĭorrect, but this is precisely what they want - they need to be notified that someone did that and then examine the situation manually. I think such app will be a waste of time and won't work as everyone would expect. Unless there are more things where those columns are useful to search by, core won't likely add those indexes, and the DB admin shouldn't add them by hand. This means that, for big instances, the performance will likely be awful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |