nextcloud / files_automatedtagging

:bookmark: An app for Nextcloud that assigns tags to newly uploaded files based on some conditions
https://apps.nextcloud.com/apps/files_automatedtagging
52 stars 23 forks source link

An occ groupfolder:scan becomes extremely slow #911

Open Serial32 opened 3 months ago

Serial32 commented 3 months ago

Steps to reproduce

  1. Enable "Files automated tagging" Plugin
  2. Scan a groupfolder (for example occ groupfolder:scan 84)

Expected behaviour

The group folder is 23GB in size. If the plugin is deactivated, a scan only takes a few seconds.

occ groupfolder:scan 84 +-----------+---------+-------+--------------+ | Folder Id | Folders | Files | Elapsed time | +-----------+---------+-------+--------------+ | 84 | 6202 | 39486 | 00:00:26 | +-----------+---------+-------+--------------+

Actual behaviour

If the plugin is activated, the scan takes over 11 minutes, although the same content is scanned.

occ groupfolder:scan 84 +-----------+---------+-------+--------------+ | Folder Id | Folders | Files | Elapsed time | +-----------+---------+-------+--------------+ | 84 | 6202 | 39486 | 00:11:46 | +-----------+---------+-------+--------------+

Server configuration

Operating system: Ubuntu 20.04.6 LTS

Web server: Nginx

Database: MariaDB

PHP version: 8.2.17

Nextcloud version: 28.0.4 Where did you install Nextcloud from:

Signing status:

Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

List of activated apps: Enabled:

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: no

Are you using an external user-backend, if yes which one: ActiveDirectory

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...