unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* What is notmuch compact and should I use it?
@ 2017-09-16  0:58 Attic Hermit
  2017-09-16 12:01 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Attic Hermit @ 2017-09-16  0:58 UTC (permalink / raw)
  To: notmuch

I read the manuals of Notmuch and encountered notmuch-compact. The
manual says that it compacts the notmuch database and it will enhance
the performance of Notmuch.

What exactly is to compact the database? I noticed that the size of the
notmuch database is shrunk after `notmuch compact`, but I don't think
this procedure is gzipping the database. I thought it is something like
the garbage collecting, but I'm not sure.

And should I use it regularly? if it is, how often should it be done?
-- 
Attic Hermit

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is notmuch compact and should I use it?
  2017-09-16  0:58 What is notmuch compact and should I use it? Attic Hermit
@ 2017-09-16 12:01 ` David Bremner
  2017-09-16 12:52   ` Attic Hermit
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2017-09-16 12:01 UTC (permalink / raw)
  To: Attic Hermit, notmuch

Attic Hermit <fjdksl@cock.li> writes:

> What exactly is to compact the database? I noticed that the size of the
> notmuch database is shrunk after `notmuch compact`, but I don't think
> this procedure is gzipping the database. I thought it is something like
> the garbage collecting, but I'm not sure.

Yes, that's approximately correct; notmuch compact is essentially
equivalent to xapian compact

     https://xapian.org/docs/admin_notes.html#compacting-a-database
     
> And should I use it regularly? if it is, how often should it be done?

There is some tradeoff: search should be faster after a compact, but
indexing many messages will likely be slower. For most people this
doesn't matter too much since the number of messages added after the
original index is relatively small.

d

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is notmuch compact and should I use it?
  2017-09-16 12:01 ` David Bremner
@ 2017-09-16 12:52   ` Attic Hermit
  2017-09-16 14:37     ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Attic Hermit @ 2017-09-16 12:52 UTC (permalink / raw)
  To: David Bremner, notmuch

David Bremner <david@tethera.net> writes:

> There is some tradeoff: search should be faster after a compact, but
> indexing many messages will likely be slower.

Maybe I'm wrong, but is it meaning that it will be taking a long time to
compact many messages, or after doing `notmuch compact`, indexing many
new messages will be slower because of the compacted database?

-- 
Attic Hermit

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is notmuch compact and should I use it?
  2017-09-16 12:52   ` Attic Hermit
@ 2017-09-16 14:37     ` David Bremner
  2017-09-16 14:46       ` Attic Hermit
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2017-09-16 14:37 UTC (permalink / raw)
  To: Attic Hermit, notmuch

Attic Hermit <fjdksl@cock.li> writes:

> David Bremner <david@tethera.net> writes:
>
>> There is some tradeoff: search should be faster after a compact, but
>> indexing many messages will likely be slower.
>
> Maybe I'm wrong, but is it meaning that it will be taking a long time to
> compact many messages, or after doing `notmuch compact`, indexing many
> new messages will be slower because of the compacted database?

The latter, according to the xapian documentation.

d

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is notmuch compact and should I use it?
  2017-09-16 14:37     ` David Bremner
@ 2017-09-16 14:46       ` Attic Hermit
  0 siblings, 0 replies; 5+ messages in thread
From: Attic Hermit @ 2017-09-16 14:46 UTC (permalink / raw)
  To: David Bremner, notmuch


All things are clear now. Thank you!

David Bremner <david@tethera.net> writes:

> Attic Hermit <fjdksl@cock.li> writes:
>
>> David Bremner <david@tethera.net> writes:
>>
>>> There is some tradeoff: search should be faster after a compact, but
>>> indexing many messages will likely be slower.
>>
>> Maybe I'm wrong, but is it meaning that it will be taking a long time to
>> compact many messages, or after doing `notmuch compact`, indexing many
>> new messages will be slower because of the compacted database?
>
> The latter, according to the xapian documentation.
>
> d
-- 
Attic Hermit

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-16 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-16  0:58 What is notmuch compact and should I use it? Attic Hermit
2017-09-16 12:01 ` David Bremner
2017-09-16 12:52   ` Attic Hermit
2017-09-16 14:37     ` David Bremner
2017-09-16 14:46       ` Attic Hermit

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).