<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<blockquote type="cite"
cite="mid:36030839-1DD0-49BC-8BA9-5980609E61B9@ketola.io">
<div>
<blockquote type="cite" class="">
<div class="">
<div class="">
<blockquote type="cite" class="">You can inspect the index
files with doveadm dump to check what is cached. Not
sure how it went with mdbox storage driver.<br class="">
</blockquote>
According to `man doveadm-dump` it just seems to dump
index files. I tried dumping the cache file but it
complains that it can't auto detect the file type.<br
class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class=""><br class="">
</div>
<div class="">Try this:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class="">[root@ketola .INBOX]# pwd</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class="">/<a href="mailto:vmail/sami@ketola.io"
class="moz-txt-link-freetext" moz-do-not-send="true">vmail/sami@ketola.io</a>/index/.INBOX</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class="">[root@ketola .INBOX]# doveadm dump . | grep -c
hdr.message-id</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class="">11007</div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: "Helvetica Neue";"
class=""><br class="">
</div>
</blockquote>
<br>
root@ht-mailstore01:/data/mail/hostmasterlog/mdbox/mailboxes/INBOX/dbox-Mails
# doveadm dump . | grep -c hdr.MESSAGE-ID<br>
4464736<br>
<br>
In dovecot config I have `fts_enforced = yes` and after the search
for Message-ID finishes and returns UID, I can do a FETCH ..
ENVELOPE on it and it responds immediately.<br>
I was under the impression that fts_enforced forces all searches,
headers and body, to go to solr. Then all dovecot would have to do
was to return the UID returned by solr.<br>
Unless solr doesn't return UID and dovecot has to take the result
from solr and lookup the UID, and with a full 1 GB cache file it
always has to scan the whole index? <br>
<br>
Nothing seems to be completely broken, I always receive a result,
it's just that it takes 30 seconds when I really want it to be ~5
seconds at most.<br>
<br>
I guess if we can't find a solution and 30 seconds becomes a real
problem, we'll split the mailbox up by years. It should help with
the size of the cache. It makes the searching code a little more
complicated since it has to figure out the sent date before it can
search, but it's doable.<br>
<br>
.einar<br>
</body>
</html>