notmuch painfully slow

2011-05-05 Thread Xavier Maillard
Hi,

On Tue, 26 Apr 2011 22:04:13 +0200, Florian Friesdorf  
wrote:
> 
> thank you all for your answers!

I second that and thanks to your performance page, I finally switched to
chert format database. That's day and night !

Thank you !

/Xavier


Re: notmuch painfully slow

2011-05-05 Thread Xavier Maillard
Hi,

On Tue, 26 Apr 2011 22:04:13 +0200, Florian Friesdorf  wrote:
> 
> thank you all for your answers!

I second that and thanks to your performance page, I finally switched to
chert format database. That's day and night !

Thank you !

/Xavier
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: storing From and Subject in xapian

2011-05-05 Thread Istvan Marko
Austin Clements  writes:

> This is awesome.  What was your machine configuration?

Reasonably modern linux box, Core i5. Both the xapian db and the mail
files are on the same 7200 RPM SATA drive, ext4 filesystem.

I guess the SSD might explain why you your uncached results are not as
bad as mine.

My test search matches 8800 messages grouped into 5550 threads.

Wit the patch cached results go from 2.5 secs to 1.5, uncached goes from
40 secs to 6.

Thanks for the clue on the missing subject lines, your change does
indeed fix the problem!

-- 
Istvan
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


storing From and Subject in xapian

2011-05-05 Thread Istvan Marko
Austin Clements  writes:

> This is awesome.  What was your machine configuration?

Reasonably modern linux box, Core i5. Both the xapian db and the mail
files are on the same 7200 RPM SATA drive, ext4 filesystem.

I guess the SSD might explain why you your uncached results are not as
bad as mine.

My test search matches 8800 messages grouped into 5550 threads.

Wit the patch cached results go from 2.5 secs to 1.5, uncached goes from
40 secs to 6.

Thanks for the clue on the missing subject lines, your change does
indeed fix the problem!

-- 
Istvan


[PATCH v3] test/search: add check for slightly tricky search

2011-05-05 Thread Felipe Contreras
It's not really tricky, there are many addresses with a '-' in them. I
personally really want to differentiate between foo at bar.com,
foo-testing at bar.com, and foo-patches at bar.com.

This fails, but it shouldn't:

 FAIL   Search by from (tricky):
--- search.17.expected  2011-05-04 21:52:52.913218077 +
+++ search.17.output2011-05-04 21:52:52.913218077 +
@@ -1 +1,3 @@
+thread:XXX   2000-01-01 [1/1] Search By From Name; search by from 
(name) (inbox unread)
+thread:XXX   2000-01-01 [1/1] search-by-from-trick at foo.com; search 
by from (tricky trick) (inbox unread)
 thread:XXX   2000-01-01 [1/1] search-by-from at foo.com; search by 
from (tricky) (inbox unread)

One possibility to make this work is to translate @ to -at- in the
database, so search-by-from at foo.com becomes search-by-from-trick-at-foo.com,
therefore searching for search-by-from-at- would not be confused.

Signed-off-by: Felipe Contreras 
---
 test/search |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/search b/test/search
index b180c7f..c6223f4 100755
--- a/test/search
+++ b/test/search
@@ -123,4 +123,10 @@ echo -n > expected &&
 notmuch search "no-message-matches-this" > actual &&
 test_cmp expected actual'

+test_begin_subtest "Search by from (tricky):"
+add_message '[subject]="search by from (tricky trick)"' '[date]="Sat, 01 Jan 
2000 12:00:00 -"' '[from]=search-by-from-trick at foo.com'
+add_message '[subject]="search by from (tricky)"' '[date]="Sat, 01 Jan 2000 
12:00:00 -"' '[from]=search-by-from at foo.com'
+output=$(notmuch search from:"search-by-from@" | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] search-by-from at 
foo.com; search by from (tricky) (inbox unread)"
+
 test_done
-- 
1.7.5