MBOX-Line: From dinh.viet.hoa at gmail.com  Wed Apr  8 11:31:42 2015
To: imap-protocol@u.washington.edu
From: "Hoa V. Dinh" <dinh.viet.hoa@gmail.com>
Date: Fri Jun  8 12:34:54 2018
Subject: [Imap-protocol] SEARCH semantics
In-Reply-To: <1428496136.932088.250634641.1291461C@webmail.messagingengine.com>
References: <55246A71.27553.323D151D@David.Harris.pmail.gen.nz>
	<c94a9300-489f-4fca-87e6-992ccc1221e8@gulbrandsen.priv.no>
	<1428496136.932088.250634641.1291461C@webmail.messagingengine.com>
Message-ID: <7B7A934C6DB848D6B4ADE799C2F6DC78@gmail.com>

You probably want to use a full text indexer such as Lucene / Elastic Search in this case. 
It will prevent the server from iterating on each email.

-- 
Hoa V. Dinh


On Wednesday, April 8, 2015 at 5:28 AM, Bron Gondwana wrote:

> An important thing to be aware of - if you have iPhone users. iOS since version 7
> has done a BODY search on every folder if you do a search. That's prohibitively
> expensive if you're scanning emails every time.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20150408/d51411ab/attachment.html>
