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
4
votes
2 answers

can a berkeley database be opened and accessed from multiple programs at the same time?

according to the Berkeley documentation the Transactional (TS) and the Concurrent Datastore version of the Database, multiple threads may access (and change) the database. Does this also mean that I can have 2 programs linked to the berkely 'client'…
Toad
  • 15,593
  • 16
  • 82
  • 128
4
votes
1 answer

Inserting data into BerkeleyDB-JE is getting slower and slower

I'm trying to insert ~ 56,249,000 items in a berkeleydb-JE. I ran DbCacheSize to get some stats about my database: java -jar je-5.0.34.jar DbCacheSize -records 56248699 -key 8 -data 20 === Environment Cache Overhead === 3,155,957 minimum…
Pierre
  • 34,472
  • 31
  • 113
  • 192
4
votes
4 answers

Providing fast `select count(*)` functionality in a web app

I'm re-implementing an app to support a national engineering contest, moving it from a local server to the cloud. In order to tell a team where they stand at the moment, the query has the form select 1 + count(*) from team where where score <…
Gene
  • 46,253
  • 4
  • 58
  • 96
4
votes
4 answers

is there an ocaml library store/use data structure on disk

like bdb. However, I looked at the ocaml-bdb, seems like it's made to store only string. My problem is I have arrays that store giant data. Sure, I can serialize them into many files, or encode/decode my data and put them on database or those…
romerun
  • 2,161
  • 3
  • 18
  • 25
4
votes
3 answers

sqlite , berkeley db benchmarking

I want to create desktop application in c# for that i want to use embedded database like (sqlite,berkeley db), so how can i start benchmarking for these databases ?
kedar kamthe
  • 8,048
  • 10
  • 34
  • 46
3
votes
3 answers

How can I use the Berkeley DB within an iOS application?

I would like to use the Berkeley DB within an iOS application, but I'm not sure how to go about this. How do you integrate the Berkeley DB within an iOS project? How do you communicate with it via Objective-C? Are there any tutorials or examples…
3
votes
1 answer

How to view a ".db file in linux with no GUI

i have created a .db file using Berkeley DB using C. I want to view the contents inside the .db file. How to achieve this when I ahve no GUI on a linux machine?
user537670
  • 821
  • 6
  • 21
  • 42
3
votes
1 answer

db_stat not working correctly for Berkeley DB

I downloaded Berkeley DB 5.3.28 and 18.1.40 from Oracle, compiled on Ubuntu 18.04 successfully. Everything worked as expected except db_stat utility doesn't want to return correct database statistics for me. Particularly, no of unique keys, no of…
user1502776
  • 553
  • 7
  • 17
3
votes
1 answer

What's the latest version of berkeley-db-je?

What's the latest version of berkeley-db-je? From oracle, it is 7.5. But from maven repository, it is 18.3.12. It there anyone know more details?
Spike Liu
  • 63
  • 4
3
votes
1 answer

Berkeley DB tuple with unknown datatype

I'm working with a Berkeley database (in Java). I need to read a tuple where the sequence is a string, either an int or long, then another string. How can I determine if the tuple holds an int or a long? Depending on what the tuple holds, I'll do…
Ron
  • 1,786
  • 19
  • 20
3
votes
1 answer

Optimizing a BerkeleyDB JE Database

I plan to insert a large number of unique keys ( ~3E9 ) in a BerkeleyDB JE database. The keys will have a fixed length ( ~10 bytes ) but the values will have a variable length. The database won't be transactional. What parameters would you suggest…
Pierre
  • 34,472
  • 31
  • 113
  • 192
3
votes
3 answers

SQLite Optimization for Millions of Entries?

I'm trying to tackle a problem by using a SQLite database and Perl modules. In the end, there will be tens of millions of entries I need to log. The only unique identifier for each item is a text string for the URL. I'm thinking of doing this in two…
VolatileRig
  • 2,727
  • 6
  • 32
  • 44
3
votes
1 answer

How to model Map> in Berkeley DB

I'm thinking about using Berkeley DB as part of the backend for a highly concurrent mobile application. For my application, using Queue's for their record level locking would be ideal. However, as stated in the title, I need to query and update data…
the beest
  • 463
  • 6
  • 26
3
votes
1 answer

Could you make a case for using Berkeley DB XML

I'm trying to read through the documentation on Berkeley DB XML, and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for. Maybe I'm not…
dlamblin
  • 43,965
  • 20
  • 101
  • 140
3
votes
1 answer

Storing data in a Berkeley DB database with Python and bsddb3

I’m trying to write data to a Berkeley DB database using Python 3.5 and bsddb3. I don’t have any experience with Berkeley DB, but I like to use a time stamp as the key and some JSON data as the respective value. The following example leads to an…
laserbrain
  • 985
  • 3
  • 10
  • 20