Skip to content

Searching via search bar takes very long time in large mailboxes #10448

@thstyl2000

Description

@thstyl2000

Steps to reproduce

  1. Go to a mailbox containing a lot of emails
  2. Search for something using the search bar

Expected behavior

You get a results in an acceptable amount of time.

Actual behavior

You get no results.

Mail app version

4.0.7

Nextcloud version

30.0.2

Mailserver or service

dovecot (imap)

Operating system

freebsd

PHP engine version

PHP 8.2

Nextcloud memory caching

'memcache.local' => '\OC\Memcache\APCu', 'memcache.locking' => '\OC\Memcache\Redis',

Web server

Nginx

Database

MariaDB

Additional info

The problem is because it also defaults to searching in the mail body (which is probably very expensive). Searching via the "Extra Settings" window (next to the bar) and using only one field returns results extremely quickly also in very very large mailboxes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions