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
11
votes
5 answers

Choosing between Berkeley DB Core and Berkeley DB JE

I'm designing a Java based web-app and I need a key-value store. Berkeley DB seems fitting enough for me, but there appears to be TWO Berkeley DBs to choose from: Berkeley DB Core which is implemented in C, and Berkeley DB Java Edition which is…
zokier
  • 143
  • 1
  • 6
10
votes
1 answer

How can I determine whether a Subversion repository was created with a BDB or fsfs backend?

If you arrive at a pre-existing Subversion repository, how can you determine whether it was created with a BDB or fsfs backend storage method?
JW.
  • 4,821
  • 5
  • 43
  • 60
9
votes
5 answers

BerkeleyDB write performance problems

I need a disk-based key-value store that can sustain high write and read performance for large data sets. Tall order, I know. I'm trying the C BerkeleyDB (5.1.25) library from java and I'm seeing serious performance problems. I get solid 14K docs/s…
Alex Jordan
  • 133
  • 1
  • 5
9
votes
7 answers

svn repository on Windows network share

Is it safe for multiple computers to concurrently access an svn repository stored on a shared filesystem? I'm building an application in which each Windows client machine has a local working set of files, and can periodically synchronize with the…
Patrick Linskey
  • 1,124
  • 1
  • 13
  • 24
8
votes
6 answers

Can BerkeleyDB in perl handle a hash of hashes of hashes (up to n)?

I have a script that utilizes a hash, which contains four strings as keys whose values are hashes. These hashes also contain four strings as keys which also have hashes as their values. This pattern continues up to n-1 levels, which is determined at…
gravitas
  • 703
  • 4
  • 16
8
votes
2 answers

Berkeley DB error: The je.lck file could not be locked

We are encountering the ff error when running a java program using a berkeley DB. "The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed." Any idea…
mj527
  • 161
  • 3
  • 8
8
votes
5 answers

Where can I find examples of bsddb in use?

I've spent hours searching for examples of how to use the bsddb module and the only ones that I've found are these (from here): data = mydb.get(key) if data: doSomething(data) ##################### rec = cursor.first() while rec: print rec …
tgray
  • 8,826
  • 5
  • 36
  • 41
8
votes
4 answers

Berkeleydb - B-Tree versus Hash Table

I am trying to understand what should drive the choice of the access method while using a BerkeleyDB : B-Tree versus HashTable. A Hashtable provides O(1) lookup but inserts are expensive (using Linear/Extensible hashing we get amortized O(1) for…
rakeshr
  • 1,027
  • 3
  • 17
  • 25
8
votes
1 answer

Compile/Link error building BerkeleyDB on Windows 7 (64bit) with Perl64

I want to use the perl BerkleyDB module on Windows, but I do not manage to do it. I know there are a lot problems with this and I read many of the questions here on SO and also on other sources. But I found no solution for it. For example there is:…
smartmeta
  • 1,149
  • 1
  • 17
  • 38
8
votes
3 answers

How can I determine the type of SVN repository I have?

How can I determine the type of file system that is used by a given SVN repository? I want to create a new repository with svnadmin but want to make sure I am creating my new repository with consistent settings to other repositories already on the…
MikeJ
  • 14,430
  • 21
  • 71
  • 87
8
votes
0 answers

Berkeley DB in multithreaded applications

What is the best way to use berkeley DB (bdb) handles in a multi-threaded application? Is it better to have each thread open its own handle; or, is it better to open a single handle and have each thread do txn_begin { } txn->commit()? Which one…
psaccounts
  • 315
  • 2
  • 6
8
votes
1 answer

fsync vs write system call

I would like to ask a fundamental question about when is it useful to use a system call like fsync. I am beginner and i was always under the impression that write is enough to write to a file, and samples that use write actually write to the file at…
isaac.hazan
  • 3,772
  • 6
  • 46
  • 76
7
votes
1 answer

I am trying to install bsddb3, but there is an error, how can I fix it?

I write in the console: pip3 install bsddb3 But I get the error: Collecting bsddb3 Using cached https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz Complete output…
Artem Sh
  • 103
  • 1
  • 8
7
votes
2 answers

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…
jjfine
  • 889
  • 7
  • 20
7
votes
3 answers

How to open local bitcoin database

I am trying to extract data from local bitcoin database. As I know, bitcoin-qt is using BerkeleyDB. I have installed BerkleyDB from Oracle web site, and found there a DLL for .NET: libdb_dotnet60.dll. I am trying to open a file, but I get a…
Zergatul
  • 1,957
  • 1
  • 18
  • 28
1
2
3
32 33