Does TDB (trivial database) binding for Ruby exist?

Hello,

I've seen benchmarks of QDBM, TDB, GDBM, DB4 and DB1 databases.
TDB was the winner so I googled to find Ruby binding for TDB, but was unsuccessful.

Has anyone written it or seen it somewhere?

Thank you,
jan

Do you really need the fastest database of those four, or just one thats fast enough? Have you tried using another DB and seeing how it performs for your application? (Incidentally I would suggest KirbyBase[1], since it is pure ruby, and all the code is in one file so it's easy to distribute with your app).

[1] http://www.netpromi.com/kirbybase_ruby.html

···

On Oct 5, 2005, at 4:32 AM, MiG wrote:

Hello,

I've seen benchmarks of QDBM, TDB, GDBM, DB4 and DB1 databases.
TDB was the winner so I googled to find Ruby binding for TDB, but was unsuccessful.

Has anyone written it or seen it somewhere?

Thank you,
jan

I need TDB because it is the fastest hash db. The second reason is that it is really crash-resistant
(especially in comparison with QDBM).

Trivial Database download | SourceForge.net :

TDB is a Trivial Database. In concept, it is very much like GDBM,and BSD's DB except that it allows multiple simultaneous writers and uses lockinginternally to keep writers from trampling on each other.TDB is also extremely small.

I've had a look to tdb's code and how to write a ruby binding.
I'm not C fun but I don't think I'm unable to write it.
It's all about time :-))

jan

···

On Sat, 08 Oct 2005 19:56:06 +0200, Logan Capaldo <logancapaldo@gmail.com> wrote:

On Oct 5, 2005, at 4:32 AM, MiG wrote:

Hello,

I've seen benchmarks of QDBM, TDB, GDBM, DB4 and DB1 databases.
TDB was the winner so I googled to find Ruby binding for TDB, but was unsuccessful.

Has anyone written it or seen it somewhere?

Thank you,
jan

Do you really need the fastest database of those four, or just one thats fast enough? Have you tried using another DB and seeing how it performs for your application? (Incidentally I would suggest KirbyBase[1], since it is pure ruby, and all the code is in one file so it's easy to distribute with your app).

[1] http://www.netpromi.com/kirbybase_ruby.html