unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Linas Vepstas" <linasvepstas@gmail.com>
To: betoes <betoes@member.fsf.org>
Cc: guile-user@gnu.org
Subject: Re: guile-db
Date: Wed, 15 Oct 2008 14:08:35 -0500	[thread overview]
Message-ID: <3ae3aa420810151208o73421e79qce3b6361eddba47@mail.gmail.com> (raw)
In-Reply-To: <1224038344.4370.23.camel@localhost>

2008/10/14 betoes <betoes@member.fsf.org>:
> On Tue, 2008-10-14 at 15:38 -0500, Linas Vepstas wrote:
>
> 2008/10/14 betoes <betoes@member.fsf.org>:
>> Hello list,
>>
>> In the Debian distro, there is a packge named guile-db, which refers to a
>> Berkeley DB wrap for Guile. Do someone know if it is active? If there is a
>> repository or web page? I tried the maintainer and author e-mails with no
>> success.
>
> Dunno. However, fyi, I'm maintaining guile-dbi, which wraps
> postgres and mysql.
>
> guile-dbi is great! I'm using it, thanks!
>
> Berkeley DB is a low-level database, not a high level as SQL flavors, it can
> be used as the base of them, it is GPL.

I know what BDB is.

I tend to avoid it because it's performance can be disasterous
for certain database loads. I (re-)discovered this summer that
BDB insists on always flushing key indexes to disk, and there seems to
be no way to tell it to not do this.  This is OK, I guess,
if you need your DB to be hardend against index corruption in
the event of a power failure, but it sucks for performance.

If you are trying to create an new DB by adding
millions of new key-value pairs, this "feature" is utterly
un-needed (if there's a power failure, just rebuild the DB
from scratch) and it will absolutely kill performance.  By
contrast, you can tell Postgres to not build indexes until
later, and to not write anything to disk for as long as it can.
For this case, postgres is orders of magnitude faster than
BDB, taking hours instead of days to build multi-million
record databases..

I was unable to find any way of turning off this "feature"
in BDB, so for me, its a non-starter. Shame, since otherwise
for me, I don't need 99% of the rest of SQL, and BDB might
indeed have been simpler/faster on the query side.

--linas




  reply	other threads:[~2008-10-15 19:08 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14 19:36 guile-db betoes
2008-10-14 20:38 ` guile-db Linas Vepstas
2008-10-15  2:39   ` guile-db betoes
2008-10-15 19:08     ` Linas Vepstas [this message]
2008-10-15  7:06   ` guile-db Sebastian Tennant
2008-10-15 19:15     ` guile-db Linas Vepstas
2008-10-16 19:59       ` guile-db Sebastian Tennant
2008-10-16 23:11         ` guile-db Linas Vepstas
2008-10-17 11:04           ` guile-db Sebastian Tennant
2008-10-17 11:49             ` guile-db Greg Troxel
2008-10-20  9:11               ` guile-db Sebastian Tennant
2008-10-20 11:44                 ` guile-db Greg Troxel
2008-10-22  9:18                   ` guile-db Sebastian Tennant
2008-10-22 12:40                     ` guile-db Greg Troxel
2008-10-22 13:02                       ` guile-db David Séverin
2008-10-22 14:42                         ` guile-db Greg Troxel
2008-10-23  4:48                       ` guile-db Sebastian Tennant
2008-10-23  8:18                         ` guile-db Neil Jerram
2008-10-23 11:31                           ` guile-db Sebastian Tennant
2008-10-20 18:15                 ` guile-db Clinton Ebadi
  -- strict thread matches above, loose matches on Subject: below --
2008-10-20 19:25 guile-db dsmich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ae3aa420810151208o73421e79qce3b6361eddba47@mail.gmail.com \
    --to=linasvepstas@gmail.com \
    --cc=betoes@member.fsf.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).