Questions tagged [berkeley-db-je]

Berkeley DB Java Edition is part of the Oracle Berkeley DB family of products. It is a 100% Java library that links into your application, enabling key-value pair (NoSQL) and Java object data persistence. It provides several Java APIs, supports transactional and non-transactional operations and replication. It's designed to be small, highly performant, reliable, available and scalable.

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

Product Homepage

Downloads

FAQ

Documentation

Primary technical discussion forum

86 questions
2
votes
0 answers

How to remove index in Titan DB (berkeleyJE backend) using gremlin?

I am unable to remove an index from a Titan DB, with berkeleyJE backend. The status of the index never changes from INSTALLED to DISABLED. I have tried with both a Java program and with gremlin commands. See the gremlin commands I have used below,…
2
votes
0 answers

How to optimize berkeley-DB-JE Environment for fast recovery?

We are running a simple multi-threaded java application which uses Berkeley-DB databases for its storage. There is about 500 threads and each thread has its own Berkeley-DB database - and each database is about 100K of value-key pairs. All databases…
Robert Grezan
  • 1,266
  • 3
  • 13
  • 27
2
votes
0 answers

Optimal log file size for BerkeleyDB-JE

As I try to understand performance issues with our application, I came across a configuration option je.log.fileMax for BerkeleyDB-JE. However, I can't find any description/documentation when and how one must change this value, if at all. I have now…
kofemann
  • 4,217
  • 1
  • 34
  • 39
2
votes
1 answer

Auto Increment the Primary Key in Berkeley Database Java Edition

I want to auto increment the Primary Key in Berkeley Database. I use @PrimaryKey(sequence="Id"). It worked fine. but when i enter a another data the sequence is getting wrong. As a Example when i execute database.put the primary key is "1", but…
keshan
  • 23
  • 2
2
votes
0 answers

Berkeley-db-je dbverify tool slow

So I'm using the bdb je dbverify to check for corruption in a large bdb database around 250GB. Below is the command I'm using to run the tool and its taking quite a long time. Estimated 8 or 9 hours. java -cp je-4.1.17.jar…
Ciarán
  • 773
  • 2
  • 7
  • 20
2
votes
1 answer

Keep BDB JE in memory while reloading application .jar

As BDB JE runs in he application's process I'd like to find the best way to build a system where I can BDB running and reload my ever changing application logic and dependencies. Ideally I would run BDB in a separate process but then I would need to…
Ben Smith
  • 1,554
  • 1
  • 15
  • 26
2
votes
0 answers

Oracle Berkeley DB Java Edition - Secondary key unicity

I have a simple entity class and it is supposed to include unique names on it. @Entity class Package { @PrimaryKey(sequence = "ID") public Long id; @SecondaryKey(relate = Relationship.ONE_TO_ONE) public String name; private…
Akdeniz
  • 1,260
  • 11
  • 21
2
votes
2 answers

BDB select records where key starts with

Given: Records stored as a simple string DatabaseEntry key-value, keys looks like: NODE_1 NODE_1_PROP_1 NODE_1_PROP_2 NODE_1_PROP_3 NODE_2 NODE_2_PROP_1 NODE_2_PROP_2 NODE_2_PROP_3 How to: Select only records which IDs starts with NODE_1, result…
Rrr
  • 1,747
  • 3
  • 17
  • 22
2
votes
1 answer

Alternatives to BDB JE embedded database

I was using BDB JE since times it was developed by SleepyCat, than it was acquired by Oracle and the licensing policy is not clear now. So what are the alternatives to such key-value database with custom serializers of key and value objects ability…
jdevelop
  • 12,176
  • 10
  • 56
  • 112
2
votes
2 answers

Can Berkeley DB be used asynchronously in java?

Is there a way to do non-blocking actions on the java interface of Berkeley DB and get the status and result of the action using a Future or something similar (like getting a result of a Callable using a Future)? I don't want the thread calling the…
Yoav Slomka
  • 372
  • 2
  • 10
1
vote
1 answer

Iterating through Environments in Berkeley Database JE

I am trying to list all existing Database Environments (com.sleepycat.je.Environment) in a given instance of Berkeley DB Java Edition. Cannot find any API or documentation regarding this. Scanning the subdirectories containing all environments seems…
Michael
  • 603
  • 2
  • 7
  • 8
1
vote
1 answer

How to allow duplicates in StoredMap in BerkeleyDB?

In the documentation for SortedMap it mentions that somehow it is possible to allow duplicates. But I can not understand how. Can someone give me an example for this? thx
Hossein
  • 40,161
  • 57
  • 141
  • 175
1
vote
1 answer

clogin open cursors java berkeley db

I'm getting this exception of opened cursos on closing some stores on berkeley db: Exception in thread "main" java.lang.IllegalStateException: Database still has 1 open cursors while trying to close. at…
okami
  • 11
  • 2
1
vote
1 answer

com.sleepycat.je.DatabaseNotFoundException Database not found

I have the database /home/panayk/Desktop/panag_3/panag_3.tld: $ db_verify /home/panayk/Desktop/panag_3/panag_3.tld Verification of /home/panayk/Desktop/panag_3/panag_3.tld succeeded. BerkeleyDB refuses to open it. Here are my imports: import…
Panayiotis Karabassis
  • 2,278
  • 3
  • 25
  • 40
1
vote
2 answers

Traversing BerkleyDB database in store order

When using cursors in BerkleyDB JE I found that traversing a dataset generate a lot of random read IO. It happens because BDB traverse dataset in primary key ascending order. In my application I have not any requirements to process dataset in order…
Denis Bazhenov
  • 9,680
  • 8
  • 43
  • 65