Redundant scan of photos.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 598
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
I launched the command : ./occ maps:scan-photos
I have seen that files are scanned with regards too the visibility of photos by users.
But when we have some shared directories of photos, between different users, it's a waist of time and place in the database....
In my case I have a shared directory by a user containing more than 22k photos, and shared to at least 6 users...
One whould have rather scan files on the basis of ownership (Presence of the files in the files system under the user specific space), then link the photo metadata to the users having access.
In the hope to improve this application.
Server configuration detail:
Operating system: Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64
Webserver: Apache (apache2handler)
Database: mysql 10.3.27
PHP version: 7.3.27-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, msgpack, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, memcached, Zend OPcache
Nextcloud version: 21.0.1 - 21.0.1.1
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: Previous Nextcloud releases since at least 2 years from the tgz I think.
List of activated apps
Enabled:
- accessibility: 1.7.0
- activity: 2.14.3
- admin_audit: 1.11.0
- analytics: 3.5.0
- bruteforcesettings: 2.1.0
- calendar: 2.2.1
- carnet: 0.23.8
- checksum: 1.1.2
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contacts: 3.5.1
- contactsinteraction: 1.2.0
- cookbook: 0.8.4
- dashboard: 7.1.0
- dav: 1.17.1
- deck: 1.4.2
- documentserver_community: 0.1.9
- drawio: 1.0.0
- federatedfilesharing: 1.11.0
- files: 1.16.0
- files_external: 1.12.0
- files_markdown: 2.3.3
- files_mindmap: 0.0.24
- files_pdfviewer: 2.1.0
- files_rightclick: 1.0.0
- files_sharing: 1.13.1
- files_texteditor: 2.14.0
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.10.0
- firstrunwizard: 2.10.0
- fulltextsearch: 21.0.1
- geoblocker: 0.4.6
- keeweb: 0.6.5
- logreader: 2.6.0
- lookup_server_connector: 1.9.0
- maps: 0.1.8
- music: 1.2.0
- nextcloud_announcements: 1.10.0
- notes: 4.0.4
- notifications: 2.9.0
- oauth2: 1.9.0
- onlyoffice: 7.0.2
- password_policy: 1.11.0
- phonetrack: 0.6.7
- photos: 1.3.0
- polls: 1.8.3
- privacy: 1.5.0
- provisioning_api: 1.11.0
- recommendations: 1.0.0
- serverinfo: 1.11.0
- settings: 1.3.0
- sharebymail: 1.11.0
- spreed: 11.2.1
- support: 1.4.0
- survey_client: 1.9.0
- systemtags: 1.11.0
- tasks: 0.13.6
- text: 3.2.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.0
- updatenotification: 1.11.0
- user_status: 1.1.1
- viewer: 1.5.0
- weather: 1.7.5
- weather_status: 1.1.0
- workflowengine: 2.3.0
Disabled: - encryption
- federation
- user_ldap
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ./occ maps:scan-photos entry point and trace how shared directories are scanned for each user. No source files or tests are named in the issue; done would mean scanning photo files once by ownership while linking their metadata to every user with access, with coverage for shared-directory behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, linux, mysql, php
- Domain
- backend, cli, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100