unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Transitioning notmuch/Xapian from 32-bit to 64-bit system
@ 2019-07-09 14:21 Thomas Schwinge
  2019-07-09 16:28 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schwinge @ 2019-07-09 14:21 UTC (permalink / raw)
  To: notmuch, xapian-discuss

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

Hi!

Suppose you have a huge notmuch/Xapian database, built on a 32-bit system
(well, actually on x86_64-pc-linux-gnu, but using a years old 32-bit
notmuch binary; notmuch 0.9, Xapian 1.2.21 -- don't laugh), and suppose
you're finally going to update that years old notmuch installation
(release by release, forward-porting a bunch of patches).  Naturally, I'd
now do a native 64-bit build (unless somebody tells me a 32-bit build
would actually be preferable in terms of memory savings due to pointer
sizes?).  Doing some light (read-only!) testing, it seems to work fine to
access the old 32-bit built Xapian "chert" database with 64-bit
notmuch/Xapian.  Is that (a) generally safe and expected to work fine,
(b) there may be issues, or (c) don't do that, or don't know?

(Of course, I'll eventually want to rebuild the database, to take
advantage of several new features both on the notmuch and Xapian sides,
but I'd prefer to do that later.)


Grüße
 Thomas

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]

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

* Re: Transitioning notmuch/Xapian from 32-bit to 64-bit system
  2019-07-09 14:21 Transitioning notmuch/Xapian from 32-bit to 64-bit system Thomas Schwinge
@ 2019-07-09 16:28 ` David Bremner
  2019-07-09 22:59   ` Olly Betts
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2019-07-09 16:28 UTC (permalink / raw)
  To: Thomas Schwinge, notmuch, xapian-discuss

Thomas Schwinge <thomas@schwinge.name> writes:

> sizes?).  Doing some light (read-only!) testing, it seems to work fine to
> access the old 32-bit built Xapian "chert" database with 64-bit
> notmuch/Xapian.  Is that (a) generally safe and expected to work fine,
> (b) there may be issues, or (c) don't do that, or don't know?
>

IIRC, Olly previously confirmed that the Xapian database is architecture
independent. I don't think notmuch uses xapian in any weird ways that
should break that.

It should work up to an 1.4.x release of Xapian and 0.29 of
notmuch. Xapian 1.5 (development) and 1.6 (future stable) will drop
support for chert.

> (Of course, I'll eventually want to rebuild the database, to take
> advantage of several new features both on the notmuch and Xapian sides,
> but I'd prefer to do that later.)
>

It would be wise to make a backup with "notmuch dump" before going much further.

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

* Re: Transitioning notmuch/Xapian from 32-bit to 64-bit system
  2019-07-09 16:28 ` David Bremner
@ 2019-07-09 22:59   ` Olly Betts
  0 siblings, 0 replies; 3+ messages in thread
From: Olly Betts @ 2019-07-09 22:59 UTC (permalink / raw)
  To: David Bremner; +Cc: Thomas Schwinge, notmuch, xapian-discuss

On Tue, Jul 09, 2019 at 01:28:51PM -0300, David Bremner wrote:
> Thomas Schwinge <thomas@schwinge.name> writes:
> 
> > sizes?).  Doing some light (read-only!) testing, it seems to work fine to
> > access the old 32-bit built Xapian "chert" database with 64-bit
> > notmuch/Xapian.  Is that (a) generally safe and expected to work fine,
> > (b) there may be issues, or (c) don't do that, or don't know?
> 
> IIRC, Olly previously confirmed that the Xapian database is architecture
> independent.

Yes.

[...]
> 
> > (Of course, I'll eventually want to rebuild the database, to take
> > advantage of several new features both on the notmuch and Xapian sides,
> > but I'd prefer to do that later.)
> >
> 
> It would be wise to make a backup with "notmuch dump" before going much further.

You can convert the database at the Xapian level:

https://getting-started-with-xapian.readthedocs.io/en/latest/advanced/admin_notes.html#converting-a-chert-database-to-a-glass-database

However that probably doesn't allow taking advantage of all the new
notmuch features, so it's probably better to dump the tags, reindex
then restore the tags.

Cheers,
    Olly

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

end of thread, other threads:[~2019-07-09 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-09 14:21 Transitioning notmuch/Xapian from 32-bit to 64-bit system Thomas Schwinge
2019-07-09 16:28 ` David Bremner
2019-07-09 22:59   ` Olly Betts

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).