X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-dump.c;h=0475eb9d1a2d822109a5c71ab6122d096f0d0151;hb=3a0a7303368a515acc8e73bd211818e852b7e18c;hp=126593d177d50f5b84f0d84636ae015853fe7298;hpb=61f0a5b8ee2adf540106a09c5f83fe634da6beb3;p=notmuch diff --git a/notmuch-dump.c b/notmuch-dump.c index 126593d1..0475eb9d 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -73,7 +73,10 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) fprintf (stderr, "Out of memory\n"); return 1; } - notmuch_query_set_sort (query, NOTMUCH_SORT_MESSAGE_ID); + /* Don't ask xapian to sort by Message-ID. Xapian optimizes returning the + * first results quickly at the expense of total time. + */ + notmuch_query_set_sort (query, NOTMUCH_SORT_UNSORTED); for (messages = notmuch_query_search_messages (query); notmuch_messages_valid (messages);