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
1
vote
0 answers

Can I implement a class with variables in java?

Can I implement class using variables like: String classname = "VarClass"; String type1 = "int"; String name1 = "id"; String type2 = "char"; String typesize2 = "(5)" String name2= "name" public class classname{ type1 name1; type2 name2; } I am…
Yewon Li
  • 7
  • 3
1
vote
0 answers

Environment Failure Exception while inserting records into BerkeleyDB

We are trying to run a dataset and inserting records into BerkeleyDB (Version JE 5.0.103) and running into the below failure. We are able to run other datasets but we are getting this error for a particular dataset. Size of current value:…
1
vote
1 answer

Berkeley DB JE JDB files keep increasing

I am debugging a disk space issue in my system and found that .jdb files are consuming most of the space. while browsing, found this link https://backstage.forgerock.com/knowledge/kb/article/a14630082, In my case lnSizeCorrectionFactor was around…
Mahesh
  • 99
  • 1
  • 5
1
vote
1 answer

Using sum(), count(), and "group by" in Berkeley DB

How do I use sum(), count(), and group by in Berkeley DB? Is there any alternative way?
krator
  • 13
  • 2
1
vote
1 answer

Java Berkeley DB DPL - read operation spikes

I'm using DPL in Java. I have 1GB of data store. I'm firing 5 threads which are trying to read the same records after 1second of interval. Initially the read operation takes about 15ms for about 5-10 fetches and then stabilizes to 0ms (micro…
AustinPower
  • 57
  • 1
  • 6
1
vote
1 answer

Is there any advantage to putting each database in it's own environment?

Is there any advantage to creating a separate environment for each database? I gather that all databases in an environment are stored in the same chain of log files, in one directory. I was wondering if using separate environments might speed up…
zed4
  • 173
  • 1
  • 11
1
vote
1 answer

BerkeleyDB duplicate data items as append-only log?

I'm looking into using BerkeleyDB Java Edition for a project. I've only read some of the documentation so far (not written any code) but it looks like a good match. One of the functions I would like is an append-only log for a particular key. e.g.…
Joe
  • 46,419
  • 33
  • 155
  • 245
1
vote
1 answer

Compare and swap in Berkeley DB JE?

I'm looking for an efficient way to implement compare-and-swap operation in Berkeley DB. Right now I'm using really old version, however at first glance even the latest one (distributed from Oracle website) does not have a single method for such…
Alex
  • 2,916
  • 3
  • 22
  • 27
1
vote
1 answer

Deleting a database in a multi-database, single Berkeley DB JE environment

I have a coupled main and a (temporary and auxiliary) database in a BerkeleyDB JE environment. The problem is as follows: I am using transactions, and atomicity must span both the main and the aux DB therefore, as I understand the docs, I have to…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
1 answer

Berkeley DB Java Edition : Environment creation struggle

I'm new to Berkeley DB Java Ed. and I'm trying to use it. I have a really simple question. I can't create the Environment for the database. I'm using this code : EnvironmentConfig envConf = new…
1
vote
1 answer

Storing subclasses in BDB in Java Using JPL

I am trying to persist, using JPL, My objects into a simple BDB. Problem is that If I try to store a subclass in the primary index I get an error (below). The subclasses possess nothing at all different in terms of data but they are functionally…
Christian Bongiorno
  • 5,150
  • 3
  • 38
  • 76
1
vote
1 answer

Why is Titan creating duplicate vertex keys which are configured unique?

Brief summary Using latest Titan-0.5 snapshot. Our code creates vertices in concurrent threads. We are ending up in a state where we have multiple vertices with the same key. We expect this not to occur due to our constraints. Configuring keys with…
1
vote
1 answer

Foreign Key in Berkeley DB

I have two entities: The first one is: public class WordEntity { @PrimaryKey private String content; private int wordId; } The second one is: public class LexiconEntity { @SecondaryKey(relate = Relationship.ONE_TO_ONE,…
CSnerd
  • 2,129
  • 8
  • 22
  • 45
1
vote
1 answer

Berkeley DB JE - open cursor count

Is there a way to ask the API for a list of open cursors (or at least a count of the number of currently open cursors) ?
Joel
  • 29,538
  • 35
  • 110
  • 138
1
vote
0 answers

Getting count of entities over range in Berkeley db je database

I have a Berkeley DB JE database with a lot of time series data. I would like to be able to count the number of items over a time range without having to iterate over them. Is this possible?