Questions tagged [berkeley-db]

Berkeley DB is part of the Oracle Berkeley DB family of products. It is a C library that links into your application, enabling SQL, key-value pair (NoSQL) and Java object data persistence. It provides C, C++, C# and Java APIs and support for many scripting languages. It's designed to be small, highly performant, reliable, available and scalable.

You can find more information about Berkeley DB in the following locations:

Product Homepage: General Product Info and Berkeley DB Product Info

Downloads

FAQ

Documentation

Primary technical discussion forums for Berkeley DB in general and specifically for Berkeley DB High Availability

493 questions
0
votes
1 answer

Performance lost when open a db multiple times in BerkeleyDB

I'm using BerkeleyDB to develop a small app. And I have a question about opening a database multiple time in BDB. I have a large set of text ( corpus ), and I want to load a part of it to do the calculation. I have two pseudo-code (mix with python)…
ntcong
  • 800
  • 2
  • 7
  • 16
0
votes
1 answer

Should I deallocate data after calling DB->put with DB_DBT_MALLOC flag on data?

I have a problem with deallocating memory after calling DB->put(). It says "double free or corruption", when I do it. Code sample: DBT key,value; int…
Pupkov-Zadnij
  • 1,342
  • 2
  • 11
  • 21
0
votes
2 answers

Adding key-value pairs to BerkeleyDB using hash access method

I am trying to create a BerkeleyDB using the hash access method, like so: >>> from bsddb3 import db >>> dben = DB() >>> dben.open("filename", None, db.DB_HASH, db.DB_CREATE) However, when I try to insert an entry, nothing works: >>>…
The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156
0
votes
1 answer

insert data to Berkeley DB very poor performance in Big Data

I have already held the 80G Berkeley DB file. I measure the average insert speed is 8ms for one record(32 byte key/100 byte value) without transaction. Compare to insert to empty database with same interface, the average speed is 3~6 us.
xiaoningyb
  • 41
  • 1
  • 3
0
votes
1 answer

How to retrieve data whose key is less than a specified key using berkeley db?

As you see in the title, I want to retrieve data whose key is less than a specified key, and then I need to join many cursors which one could be more than a specified string, and another might be less than a specified integer. By default, the…
Peiyun
  • 149
  • 1
  • 7
0
votes
1 answer

openldap 2.4 configure replication using Syncrepl

i want to replicate ldap with Syncrepl and i follow http://www.openldap.org/doc/admin24/replication.html. i get trouble when i start provider which get " line 79: extra cruft after . slaptest: bad configuration file" in log file. Pls help to…
bbkaaka
  • 297
  • 2
  • 5
  • 16
0
votes
1 answer

How to traverse berkeley-db database in descending order of 'value'?

I have a Berkeley-db database where both 'key' and 'value' are of type integer. Is there any way to traverse the database in descending order of 'value'? I'm using Berkeley-db je-5.0.58 API. The sample code that i'm using from its documentation is…
0
votes
1 answer

Plugging another relational DB to OpenDS

Currently I'm working on a project with opends. I have to upload more than 200k entries in the OpenDS. But unfortunately its fails at random times when file limit exceeding more than 10k - 15k. When I google for that particular error (alert ID…
0
votes
3 answers

Having trouble with class scope

I have a class called Streamer. Here is Streamer.h class Streamer { public: Streamer(const MyDb& realtimeDb); virtual ~Streamer(void); private: virtual void callback_1(T_UPDATE pUpdate); virtual void callback_2(Q_UPDATE…
nathancahill
  • 10,452
  • 9
  • 51
  • 91
0
votes
1 answer

Berkeley DB on Heroku

Is there a way to use Berkeley DB from Ruby on Heroku? I know about the bdb gem and a few similar. But Berkeley DB must be installed as a library in advance for these to build. I am only beginning to learn about Heroku deployment, so apologize…
Gene
  • 46,253
  • 4
  • 58
  • 96
0
votes
1 answer

BerkeleyDB JE random access time increases non-linearly

I am testing BerkeleyDB Java Edition to understand whether I can use it in my project. I've created very simple program which works with object of class com.sleepycat.je.Database: writes N records of 5-15kb each, with keys generated like…
Rodion Gorkovenko
  • 2,670
  • 3
  • 24
  • 37
0
votes
3 answers

memcpy Seg fault seemingly innoculous

Got a seg fault from my memcpy that gdb can't give me anything else on (at least beyond the simple manner that I know how to use gdb...). This thing is deeply imbedded in some code using the Berkely DB; I have taken out the only lines that should be…
levitopher
  • 117
  • 6
0
votes
1 answer

Berkeley DB SIGBUS error

I have the following program which creates a Berkeley DB environment. #include #include int main() { DB_ENV *env=NULL; DB* m_db=NULL; if(db_env_create(&env,0)==-1) printf("fail create\n"); env->set_lk_max_locks(env,…
florinp
  • 329
  • 2
  • 5
  • 13
0
votes
1 answer

Berkeley DB segfault - __bamc_put parameters misaligned?

I'm trying to use BDB in a simple program, but I'm running into a segfault issue. Program received signal SIGSEGV, Segmentation fault. __bamc_put (dbc=0x60e7f0, key=0x0, data=0x60b240, flags=6337152, pgnop=0x0) at…
justmoon
  • 1,311
  • 1
  • 10
  • 9
0
votes
1 answer

Berkeley DB (JE) growing out of control

I have written a web crawler in Java, and I am using Berkeley DB to save the pages I crawl (for later indexing, etc.). I am storing each page as a Webpage object, which has the following instance fields: @PrimaryKey String url; String…
Sam Stern
  • 24,624
  • 13
  • 93
  • 124
1 2 3
32
33