berkeley-db

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

我怕爱的太早我们不能终老 提交于 2019-11-30 22:58:52
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' and have them access the same database file without any problems? (I ask, since for a separate database server this would be no problem of course, but in the case of Berkeley the database engine is linked long with your program) thanks! R Tuure Laurinolli Some documentation seems to think you can use the same database concurrently from multiple

Is it possible to access a BDB from pure Java?

柔情痞子 提交于 2019-11-30 19:09:53
问题 I'm trying to access "cert8.db" mozilla file which is a BDB database. I know that there are bindings for languages, Java among them, but I'm trying to build a multiplatform app so I think that using JNI such as this one would be a problem. Thanks in advance. 回答1: You don't need full BDB package to read that file. Check out this class, http://sam.nipl.net/code/mindterm/com/mindbright/bdb/DBHash.java 来源: https://stackoverflow.com/questions/2873581/is-it-possible-to-access-a-bdb-from-pure-java

Optimizing Put Performance in Berkeley DB

走远了吗. 提交于 2019-11-30 05:23:43
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 in order - chunks will be deleted in FIFO order - if i lose some data off the end because of power failure that's ok as long as the whole db isn't broken After reading the a bunch of the documentation it seemed like a Queue db was exactly what I wanted. However, after trying some test code my fastest results were about 1MByte per second just looping

How to find out Subversion repository version?

守給你的承諾、 提交于 2019-11-29 22:34:47
How can I determine current version of my repository to see if I need to upgrade it (svnadmin upgrade)? In reality I'm hosting SVN with 3rd party and I want to find out if I need to ask them to upgrade my repos or not. I'm asking since 1.5 server will keep repo version at 1.4, unless I miss something? Have a look at <REPO>/db/format . After upgrading to 1.5 format, my format file shows: 3 layout sharded 1000 Before it used to be: 2 Take the http or https link to your repository and cut & paste it into a browser. The Subversion repository server version appears in the footer by default. Powered

How fast is Berkeley DB SQL compared to SQLite?

折月煮酒 提交于 2019-11-29 20:20:40
Oracle recently released a Berkeley DB back-end to SQLite . I happen to have a hundreds-of-megabytes SQLite database that could very well benefit from "improved performance, concurrency, scalability, and reliability", but Oracle's site appears to lack any measurements of the improvements. Has anyone here done some benchmarking? Mike Owens I participated in the beta evaluation of the BDB SQLite code and one of the things I tried to get a handle on was the performance difference. At this point, I cannot publish exactly what I found until I have at least one other person evaluate my code, run the

Is Berkeley DB XML a viable database backend?

余生长醉 提交于 2019-11-29 11:31:32
问题 Apparently, BDB-XML has been around since at least 2003 but I only recently stumbled upon it on Oracle's website: Berkeley DB XML. Here's the blurb: Oracle Berkeley DB XML is an open source, embeddable XML database with XQuery-based access to documents stored in containers and indexed based on their content. Oracle Berkeley DB XML is built on top of Oracle Berkeley DB and inherits its rich features and attributes. Like Oracle Berkeley DB, it runs in process with the application with no need

Recommend a fast & scalable persistent Map - Java

会有一股神秘感。 提交于 2019-11-28 17:33:07
I need a disk backed Map structure to use in a Java app. It must have the following criteria: Capable of storing millions of records (even billions) Fast lookup - the majority of operations on the Map will simply to see if a key already exists. This, and 1 above are the most important criteria. There should be an effective in memory caching mechanism for frequently used keys. Persistent, but does not need to be transactional, can live with some failure. i.e. happy to synch with disk periodically, and does not need to be transactional. Capable of storing simple primitive types - but I don't

Examining Berkeley DB files from the CLI

喜你入骨 提交于 2019-11-28 17:00:51
问题 I have a set of Berkeley DB files on my Linux file system that I'd like to examine. What useful tools exist for getting a quick overview of the contents? I can write Perl scripts that use BDB modules for examining them, but I'm looking for some CLI utility to be able to take a look inside without having to start writing scripts. 回答1: Check out the db-utils package. If you use apt, you can install it with the following: apt-get install db-util (or apt-get install db4.8-util or whatever version

Expressing multiple columns in berkeley db in python?

怎甘沉沦 提交于 2019-11-28 14:33:10
Say I have a simple table that contains username, firstname, lastname. How do I express this in berkeley Db? I'm currently using bsddb as the interface. Cheers. You have to pick one "column" as the key (must be unique; I imagine that would be "username" in your case) -- the only way searches will ever possibly happen. The other columns can be made to be the single string value of that key by any way you like, from pickling to simple joining with a character that's guaranteed to never occur in any of the columns, such as `\0' for many kind of "readable text strings". If you need to be able to

How to give multiple values to a single key using a dictionary?

落爺英雄遲暮 提交于 2019-11-28 13:00:00
I have a html form which has Firstname , LastName , Age and Gender and a ADD button. I enter the data into the form and that gets into the Berkeelys db. What my code does is it prints only the last values. I want that it should show all the values related to particular key #!/usr/bin/python import bsddb import cgi form = cgi.FieldStorage() print "Content-type:text/html\n" Fname = form.getvalue('firstname', '') Lname = form.getvalue('lastname', '') Age = form.getvalue('age', 0) Gender = form.getvalue('gender', '') #print Fname, Lname, Age db = bsddb.hashopen("/home/neeraj/public_html/database