{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.myserver.domain",
"home.myserver.domain",
"10.1.1.254",
"server"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/nextcloud.myserver.domain\/",
"htaccess.RewriteBase": "\/",
"dbtype": "mysql",
"version": "15.0.2.0",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"forcessl": true,
"forceSSLforSubdomains": true,
"tempdirectory": "\/tmp",
"theme": "",
"maintenance": false,
"login_form_autocomplete": false,
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0,
"dbindex": 0
},
"loglevel": 0,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"singleuser": false,
"updater.release.channel": "stable",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"enable_previews": true,
"preview_max_x": 2048,
"preview_max_y": 2048,
"preview_jpeg_quality": 75
}
}
While trying to optimize performance for the MariaDB back-end for NC15 I stumbled upon lot's of queries in the log that did not make sense. I was only browsing picture folders but found lot's of queries for Talk and Two Factor. Queries poped up every time the browser loaded a new preview image.
Steps to reproduce
tail -f /var/log/mysql/slow.log|egrep "oc_talk_rooms|oc_twofactor_providers"while browsing a folder containing pictures in NC, only to find lot's of queries like this:Expected behaviour
I don't see why all those queries are necessary upon loading a new preview picture...
Actual behaviour
Cut the queries to a minimum to take load off the SQL DB.
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache 2.4.29
Database: MariaDB 10.3
PHP version: 7.2.10
Nextcloud version: 15.0.2.0
Updated from an older Nextcloud/ownCloud or fresh install: Upgrade from OC 9
Where did you install Nextcloud from: Updater
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: FF 64.0
Operating system: Win7 64
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log