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
0
votes
1 answer

Berkeley DB: Storing List of values for a Key

Consider a sample application where we need to store Customer name as primary key and list of his transactions as value in Berkeley db. Do berkeley support storing list of values against a primary key? If so, how to approach designing the entity?
Dhakchianandan
  • 351
  • 1
  • 6
  • 15
0
votes
1 answer

how to read existing jdb file java berkeley db

I am trying to read a generated database (*.jdb) file. For creating a new database I use: storeConfig_ = new StoreConfig(); storeConfig_.setAllowCreate(true); What StoreConfig parameters must I pass in to read an already existing *.jdb…
Stelios
  • 1,294
  • 3
  • 12
  • 28
0
votes
1 answer

Can I control storage size in Berkeley DB JE?

I want to use Berkeley DB JE like a disk cache for my application. And max size of cache should be 30 Gb. That is why I need to control it. Is it any ways to know the size of storage from the code (Java)? Can I use clearing algorithm like a LRU…
Adey
  • 1,846
  • 1
  • 10
  • 18
0
votes
1 answer

Can't build berkeleyDB jdbc driver for android

I'm developing an android app that needs to use big databased but it needs to run on the Android device. I've found this database and tried to follow those…
Mariano L
  • 1,809
  • 4
  • 29
  • 51
0
votes
1 answer

How to "SELECT COUNT(*) FROM xz WHERE xz.a > value" with berkeleydb je

What is the "SELECT COUNT(*) FROM xz WHERE xz.a > value" equivalent for berkeleydb je. http://www.oracle.com/technetwork/database/berkeleydb/performing.pdf lists most of the queries I need. But this one is missing. Currently I found a way by using…
Reiner
  • 1
  • 1
0
votes
1 answer

Berkeley Java DB cache sizing

We're using JE 4.1.6 DPL. I set my environment max cache size using: EnvironmentConfig envConfig = new EnvironmentConfig(); envConfig.setCacheSize(cacheSize); StoreConfig storeConfig = new StoreConfig(); …
0
votes
0 answers

Deletion in Berkeley DB

I am not very familiar with Berkeley DB . I was trying to delete an entry from database. i am able to insert to the database and view the database. For viewing entries i used the command symbolsByName.subIndex(symbolName).entities(); where…
ashal
  • 21
  • 5
0
votes
1 answer

Setting Transaction Isolation Level in Berkeley DB Java Edition for Distributed Transactions (XA)

I am using distributed transactions in a BDB JE application to coordinate transactions across multiple BDB JE environments. I want to set the transaction isolation level to serializable. To begin distributed transactions, I use an Xid that I…
jennykwan
  • 2,631
  • 1
  • 22
  • 33
0
votes
1 answer

Does Java Berkeley DB have an upper limit for concurrent reading?

Java Berkeley DB is used in my system to store persistent data. Since I have a large amount of data to be loaded, I attempt to do that with a number of threads. When the number of threads is low, e.g., 10, it works fine. However, when it is set to a…
bing li
  • 21
  • 2
0
votes
1 answer

berkleybd Java Edition API about openbatabase

I read the document of "Getting Started with Berkeley DB Java Edition"on the oracle library.I found this API: Database openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig) Opens, and optionally creates, a Database. but when I…
0
votes
1 answer

How to get all objects using Berkeley DB meeting a condition

I just found out about Berkeley DB and its performance yesterday. I'm willing to use it in a Java project. What I would like to know is, how to get all objects stored in my DB that meet a certain condition. For example, I have objects of type…
Amine Zaine
  • 165
  • 1
  • 21
0
votes
1 answer

Berkeley DB JE environment locks

I got a problem with berkeley environment. An application can write and read from the environment but when another application tries to retrieve from it,it cannot open the environment because it is locked. I have configured the retrieval process as…
Nhiz
  • 120
  • 3
  • 14
0
votes
4 answers

How to get just the size of the value in BerkeleyDB?

Is there a way to get only the length (in bytes) of a value stored in BDB? I don't need the entire data array, only its size.
Fixpoint
  • 9,619
  • 17
  • 59
  • 78
0
votes
1 answer

Berkeley JE StoredMap : replace existing value without loading previous one

I want to update a StoredMap value and I don't care about the old value. I cannot find a way to avoid the previous value from being loaded. StoredMap tsCol = new StoredMap(tsdb, new IntegerBinding(),…
nomoa
  • 1,043
  • 6
  • 18
0
votes
1 answer

Class could not be loaded or is not persistent: scala.collection.immutable.List in Berkeley DB JE

When I use Berkeley DB JE in my scala project, I define an entity with a List member. However when I run the project, it throws an exception telling that Class could not be loaded or is not persistent: scala.collection.immutable.List. So how can I…
Dzanvu
  • 523
  • 7
  • 18