berkeley-db

DB4 & PHP on a Mac

I'm currently using XAMPP for PHP development on my Mac. I just got handed a project that needs to use the Berkeley DB with db4 support, but I just can't seem to get it working. Can you even setup DB4 with XAMPP? I successfully installed Berkeley DB and made the db4.so file and have set it the extension=db4.so line in the php.ini file, ...

how to create an berkeley db using java

Hello i am new to berkeley db . i have installed the berkely db using link text so i need to create my first db i have checked the sample programs but i coudnt find it easy please help me to create an sample db ...and how to use the API for java ...

Berkeley DB: Number of lock objects for hash access method

Hello, This page says that "for the Hash access method, you only need a single lock object". http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/lock_max.html Does this mean that all the processes/threads that access the database will try to lock the same lock object? Doesn't it cause a very high lock co...

What are all open source applications using Berkeley DB?

I am learning Berkeley DB and its usages. Could somebody point the open source applications using BerkeleyDB. Though I am using Java (BDB Java edition), I am open to refer other programming languages too. ...

berkeley db java compilation problem

Hello, I am new to berkeley db and i installed the berkeley db (not the java version ) and if i try to run the java example program it says `SimpleDA.java:13: package com.sleepycat.db does not exist import com.sleepycat.db.DatabaseException; ^ there is no jar library how can i include the lib in java path .... ...

Best NoSQL-way to store machinedata?

Hi there, I'm looking for a NoSQL-way to store machinedata like information about tools, work pieces, products, operations and so on... Currently I'm concentrating on BerkeleyDB and need input from you guys, whether I should consider using another nosql-database which might fit better on my requierements. Data stored in this db should b...

Berkeley DB and C++ benchmark example?

Hi there! I'm trying to run benchmarks with a little berkeley db and c++ code, just for research purposes. Currently I'm testing with the following code. I'm filling the recors only with incrementing integers (I omitted things like error handling for better readability) (db is my own berkeley db class) // Open the database db.open( NU...

Does Berkeley DB (Java version) support data partitioning?

Hi, I have about 5GB data to store BDB, but I found the performance is not very good. Does it support data partitioning? thanks ...

SQLite Optimization for Millions of Entries?

I'm trying to tackle a problem by using a SQLite database and Perl modules. In the end, there will be tens of millions of entries I need to log. The only unique identifier for each item is a text string for the URL. I'm thinking of doing this in two ways: Way #1: Have a good table, bad table, unsorted table. (I need to check the html an...

Optimizing Put Performance in Berkeley DB

I just started playing with Berkeley DB a few days ago so I'm trying to see if there's something I've been missing when it comes to storing data as fast as possible. Here's some info about the data: - it comes in 512 byte chunks - chunks come in order - chunks will be deleted in FIFO order - if i lose some data off the end be...

OpenLDAP Installation - not finding the BerkelyDB

I'm installing OpelLdap on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607. All went well, until running './configure' for OpenLDAP - the following error was recorded: checking for gethostbyaddr_r... yes checking number of arguments of ctime_r... 2 checking number of arguments of gethostbyname_r... 6...

Berkeley DB with Perl API, can't open existing database

This is very perplexing, but I'm having this weird error. Here's the code I have: my $env = new BerkeleyDB::Env ( -Home => "$dbFolder", -Flags => DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL | DB_CDB_ALLDB ) or die "cannot open environment: $BerkeleyDB::Error\n"; my $unsortedHash = BerkeleyDB::Hash->new ( -Filename => "Uns...

Can I use multiple keys in Berkeley DB ?

I want to use in Berkeley DB the following Perl logic (for many millions records): $hash{key1}{key2}{key3}{count1}++; $hash{key1}{key2}{key3}{count2}++; ... for (key1) { for (key2) { for (key3) { print $hash{key1}{key2}{key3}{count1}."\t".$hash{key1}{key2}{key2}{count2}; } } } Any example from multiple...

Berkeley DB: how does it compare to MongoDB?

Recently, I've been digging into various types of DBs. I need to store & query “relational, hierarchical, graph, document” hybrid data. I'm looking for the best DB solution. I can't find much data about Berkeley DB. Most of the stuff on their website is written by the marketing dept. One of the PDFs makes it sound like it handles relati...