]> git.notmuchmail.org Git - notmuch/commitdiff
TODO: Add idea for fixing "notmuch count" to always be exact.
authorCarl Worth <cworth@cworth.org>
Tue, 1 Jun 2010 17:40:38 +0000 (10:40 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Jun 2010 17:51:42 +0000 (10:51 -0700)
I had previously thought Xapian only offered an estimate for the
number of results that might match a search. But Olly let me know
that we can easily ask for Xapian to provide the exact count.

TODO

diff --git a/TODO b/TODO
index 7cbf632dcb59c200a65725778dec0912ea69e5e4..f65e59ab54d7d90b39e73157a59937af182ce4b1 100644 (file)
--- a/TODO
+++ b/TODO
@@ -247,6 +247,11 @@ into the shared-library interface.
 Audit all libnotmuch entry points to ensure that all Xapian calls are
 wrapped in a try/catch block.
 
+Fix the "count" functionality to be exact as Olly explained in IRC:
+
+       ojwb> cworth: if you set the check_at_least parameter to the
+       database size, get_matches_estimated() will be exact
+
 Search syntax
 -------------
 Implement support for "tag:*" to expand to all tags.