⚠️ This issue respects the following points: ⚠️
Bug description
Global/Unified search for files and tags is slow if a lot of shares are present. Search result for fulltextsearch, collectives, talk, deck and mails popup nearly instantly, but result for files and tags takes ages until they appear (approx. 30 seconds).
Tested accounts have approx. 600 shares (according to oc_shares share_with column.
Talk is used a lot for sharing photos, which is probably the main reason for the amount of shares.
Postgres log shows slow query... see below.
Doing the same on a cloned server instance without these shares (shares removed), the search results for files and tags appear within 2 seconds.
Just want to reference #23835 which really improved things in regards to search speed. Unfortunately it seems this issue is not fixed if a lot of shares are present.
Steps to reproduce
- Login to an account with a lot of received shares (in my case approx. 600).
- Open search (it makes no difference if you use the webif or the android client).
- Enter a search string
- See first search results... spinner keeps active for approx 30 seconds until results for files and tags are shown.
Expected behavior
Search result for files and tags should appear as fast as possible, even if a lot of shares are received.
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.domain.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "25.0.2.3",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"forcessl": true,
"forceSSLforSubdomains": true,
"overwrite.cli.url": "https:\/\/cloud.domain.de\/",
"overwritehost": "cloud.domain.de",
"overwriteprotocol": "https",
"overwritewebroot": "\/",
"htaccess.RewriteBase": "\/",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": true,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"logtimezone": "Europe\/Berlin",
"loglevel": 3,
"log_rotate_size": 104857600,
"maintenance": false,
"trashbin_retention_obligation": "30, 180",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"dbindex": 0,
"password": "***REMOVED SENSITIVE VALUE***",
"timeout": 1.5
},
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\HEIC",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\Movie",
"OC\\Preview\\MKV",
"OC\\Preview\\MP4",
"OC\\Preview\\AVI"
],
"preview_max_x": "2048",
"preview_max_y": "2048",
"jpeg_quality": "60",
"updater.release.channel": "stable",
"app_install_overwrite": [
"fulltextsearch",
"fulltextsearch_elasticsearch",
"files_fulltextsearch",
"files_fulltextsearch_tesseract"
],
"default_language": "de",
"default_locale": "de_DE",
"default_phone_region": "DE",
"allow_local_remote_servers": true,
"activity_use_cached_mountpoints": true
}
}
List of activated Apps
Enabled:
- activity: 2.17.0
- admin_audit: 1.15.0
- bookmarks: 12.0.0
- bruteforcesettings: 2.5.0
- calendar: 4.1.0
- circles: 25.0.0
- cloud_federation_api: 1.8.0
- collectives: 2.1.1
- comments: 1.15.0
- contacts: 5.0.1
- contactsinteraction: 1.6.0
- dashboard: 7.5.0
- dav: 1.24.0
- deck: 1.8.2
- drop_account: 2.1.0
- federatedfilesharing: 1.15.0
- federation: 1.15.0
- files: 1.20.1
- files_accesscontrol: 1.15.0
- files_automatedtagging: 1.15.0
- files_external: 1.17.0
- files_fulltextsearch: 25.0.0
- files_fulltextsearch_tesseract: 25.0.0
- files_pdfviewer: 2.6.0
- files_retention: 1.14.0
- files_rightclick: 1.4.0
- files_sharing: 1.17.0
- files_trashbin: 1.15.0
- files_versions: 1.18.0
- firstrunwizard: 2.14.0
- fulltextsearch: 25.0.0
- fulltextsearch_elasticsearch: 25.0.0
- groupfolders: 13.1.0
- keeweb: 0.6.10
- logreader: 2.10.0
- lookup_server_connector: 1.13.0
- mail: 2.2.1
- nextcloud_announcements: 1.14.0
- notifications: 2.13.1
- notify_push: 0.5.0
- oauth2: 1.13.0
- password_policy: 1.15.0
- photos: 2.0.1
- previewgenerator: 5.1.1
- privacy: 1.9.0
- provisioning_api: 1.15.0
- recommendations: 1.4.0
- related_resources: 1.0.3
- richdocuments: 7.0.2
- serverinfo: 1.15.0
- settings: 1.7.0
- sharebymail: 1.15.0
- spreed: 15.0.2
- support: 1.8.0
- survey_client: 1.13.0
- systemtags: 1.15.0
- text: 3.6.0
- theming: 2.0.1
- twofactor_backupcodes: 1.14.0
- twofactor_nextcloud_notification: 3.5.0
- twofactor_totp: 7.0.0
- updatenotification: 1.15.0
- user_status: 1.5.0
- viewer: 1.9.0
- weather_status: 1.5.0
- welcome: 1.0.2
- workflowengine: 2.7.0
Disabled:
- emlviewer: 1.0.4
- encryption: 2.8.1
- suspicious_login
- user_ldap
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No response
Additional info
Postgres log shows slow search query for files and tags:
slow_search.log
Bug description
Global/Unified search for files and tags is slow if a lot of shares are present. Search result for fulltextsearch, collectives, talk, deck and mails popup nearly instantly, but result for files and tags takes ages until they appear (approx. 30 seconds).
Tested accounts have approx. 600 shares (according to
oc_sharesshare_withcolumn.Talk is used a lot for sharing photos, which is probably the main reason for the amount of shares.
Postgres log shows slow query... see below.
Doing the same on a cloned server instance without these shares (shares removed), the search results for files and tags appear within 2 seconds.
Just want to reference #23835 which really improved things in regards to search speed. Unfortunately it seems this issue is not fixed if a lot of shares are present.
Steps to reproduce
Expected behavior
Search result for files and tags should appear as fast as possible, even if a lot of shares are received.
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.domain.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "25.0.2.3", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "forcessl": true, "forceSSLforSubdomains": true, "overwrite.cli.url": "https:\/\/cloud.domain.de\/", "overwritehost": "cloud.domain.de", "overwriteprotocol": "https", "overwritewebroot": "\/", "htaccess.RewriteBase": "\/", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": true, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "theme": "", "logtimezone": "Europe\/Berlin", "loglevel": 3, "log_rotate_size": 104857600, "maintenance": false, "trashbin_retention_obligation": "30, 180", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "dbindex": 0, "password": "***REMOVED SENSITIVE VALUE***", "timeout": 1.5 }, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\HEIC", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\Movie", "OC\\Preview\\MKV", "OC\\Preview\\MP4", "OC\\Preview\\AVI" ], "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "60", "updater.release.channel": "stable", "app_install_overwrite": [ "fulltextsearch", "fulltextsearch_elasticsearch", "files_fulltextsearch", "files_fulltextsearch_tesseract" ], "default_language": "de", "default_locale": "de_DE", "default_phone_region": "DE", "allow_local_remote_servers": true, "activity_use_cached_mountpoints": true } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
Postgres log shows slow search query for files and tags:
slow_search.log