Discussion:
Remote xapian database
a***@softded.net
2014-06-26 10:39:09 UTC
Permalink
Hello,

Xapian have remote database mode:
http://xapian.org/docs/remote.html

Do you plan use it in future? I have more then 8 million letters and my
xapian db use 50 gb store :)

If I can use remote database, I will move database to external server
from my work PC (with Pentium 4) it will be very fast! :)

Thank you!
--
Best regards,
Roman Kravets
Mark Walters
2014-06-26 15:25:17 UTC
Permalink
Post by a***@softded.net
Hello,
http://xapian.org/docs/remote.html
Do you plan use it in future? I have more then 8 million letters and my
xapian db use 50 gb store :)
I don't think we have any plans to do that. However, assuming you use
emacs frontend (and/or the command line) then notmuch works very well
over ssh. See http://notmuchmail.org/remoteusage/

Several of the notmuch developers (including me) use this so although it
is not guaranteed to work correctly, in practice it seems to work pretty
well.

Best wishes

Mark
Post by a***@softded.net
If I can use remote database, I will move database to external server
from my work PC (with Pentium 4) it will be very fast! :)
Thank you!
--
Best regards,
Roman Kravets
_______________________________________________
notmuch mailing list
http://notmuchmail.org/mailman/listinfo/notmuch
Roman Kravets
2014-06-27 09:10:06 UTC
Permalink
Mark,

In this case, the file with the letters must be on the remote server?
Post by Mark Walters
Post by a***@softded.net
Hello,
http://xapian.org/docs/remote.html
Do you plan use it in future? I have more then 8 million letters and my
xapian db use 50 gb store :)
I don't think we have any plans to do that. However, assuming you use
emacs frontend (and/or the command line) then notmuch works very well
over ssh. See http://notmuchmail.org/remoteusage/
Several of the notmuch developers (including me) use this so although it
is not guaranteed to work correctly, in practice it seems to work pretty
well.
Best wishes
Mark
Post by a***@softded.net
If I can use remote database, I will move database to external server
from my work PC (with Pentium 4) it will be very fast! :)
Thank you!
--
Best regards,
Roman Kravets
_______________________________________________
notmuch mailing list
http://notmuchmail.org/mailman/listinfo/notmuch
David Bremner
2014-06-26 17:50:15 UTC
Permalink
Post by a***@softded.net
Hello,
http://xapian.org/docs/remote.html
Do you plan use it in future? I have more then 8 million letters and my
xapian db use 50 gb store :)
If I can use remote database, I will move database to external server
from my work PC (with Pentium 4) it will be very fast! :)
One thing to keep in mind is that there are several places in the code
where mail files are opened directly, so just having remote access to
the xapian database is not going to be enough, unless you want to have a
local copy of the messages, which is almost surely larger than the
database.
Roman Kravets
2014-06-27 09:15:26 UTC
Permalink
Dear David,

It is not problem. Storage - it low cost resources.
I have problem with CPU utilization.
When I use "notmuch new" my CPU used 100% :(
If can I move database to another server, it remove load from my slow computer.
Post by David Bremner
Post by a***@softded.net
Hello,
http://xapian.org/docs/remote.html
Do you plan use it in future? I have more then 8 million letters and my
xapian db use 50 gb store :)
If I can use remote database, I will move database to external server
from my work PC (with Pentium 4) it will be very fast! :)
One thing to keep in mind is that there are several places in the code
where mail files are opened directly, so just having remote access to
the xapian database is not going to be enough, unless you want to have a
local copy of the messages, which is almost surely larger than the
database.
David Bremner
2014-06-27 14:19:18 UTC
Permalink
It is not problem. Storage - it low cost resources. I have problem
with CPU utilization. When I use "notmuch new" my CPU used 100% :( If
can I move database to another server, it remove load from my slow
computer.
It's hard for me to judge how many people would be interested in such a
"half distributed" solution, but if someone wants to investigate, the
pieces I can see right away are

1) figuring out the configuration changes needed to separate the
location of the database from the location of the mail files. This is
something we've been wanting to do anyway, just so people can use
different disks, so you could probably get help with that.


2) Figure out how to nicely encode the remote versus local
distinction without adding heavy dependencies to notmuch. There is some
related discussion at

id:1340656899-5644-1-git-send-email-***@betacantrips.com

2) The actual remote database open would be done in
notmuch_database_open, in lib/database.cc

Loading...