berkeley-db

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

不打扰是莪最后的温柔 提交于 2019-12-09 01:04:10
问题 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 回答1:

How fast is Berkeley DB SQL compared to SQLite?

房东的猫 提交于 2019-12-08 22:40:10
问题 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? 回答1: 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

Berkeley DB for iPhone

邮差的信 提交于 2019-12-08 10:25:04
问题 I had tried to create the library for iphone OS 4, but was getting errors. Here are my build scripts with reference to Berkeley DB Installation guide. export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS4.2.sdk export COMPILER_iOS=${DEV_iOS}/usr/bin export CC=${COMPILER_iOS}/gcc export CXX=${COMPILER_iOS}/g++ export LDFLAGS="-arch armv6 -pipe -Os -gdwarf-2 -no-cpp-precomp -mthumb -isysroot ${SDK_iOS}" export CFFLAGS=${LDFLAGS} export CXXFLAGS

bsddb 4.2.52 DBInvalidArgError 22 Invalid argument

萝らか妹 提交于 2019-12-08 08:43:20
问题 I am simply trying to call open in Python using bsddb but running into the following error. Any idea? If not, is there a way to get a more detailed error message for debugging, getting more info can probably help me investigate a little further. An error code without much details certainly doesn't help much. DBInvalidArgError: (22, 'Invalid argument') Source: import bsddb, bsddb.db ... try: e = bsddb.db.DBEnv() e.open('/mydir', bsddb.db.DB_CREATE | bsddb.db.DB_INIT_MPOOL) ... Additional info:

How to connect to a Berkeley DB using JDBC?

我的未来我决定 提交于 2019-12-07 19:19:40
问题 I have a Berkeley DB on a local folder and I'd like to connect to it via JDBC. Specifically via Zentus SqliteJDBC. My problem is with the connection string ("url"). While a sqlite connection string might look like: "jdbc:sqlite:c:\\path\\to\\database.db" , Berkeley DB does not have a single .db file to refer to. Instead, I see multiple .jdb files that make up the DB. My questions is - What should my connection string look like? 回答1: Berkeley DB is certified against the CH-Werner JDBC driver.

Optimizing a BerkeleyDB JE Database

大憨熊 提交于 2019-12-07 17:11:00
问题 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 for the EnvironmentConfig and the DatabaseConfig for optimizing the size and the speed of my database ? Many thanks, Pierre 回答1: OK, I found the solution using the utility com.sleepycat.je.util.DbCacheSize packaged into berkeleyDB-JE java -cp je-4.0

How do i dump a specific subversion path from a berkeley db?

霸气de小男生 提交于 2019-12-06 04:19:21
I'm trying to migrate one specific branch from a windows subversion berkeley db installation, however I cant seem to be able to work out how to pass a "path" to it as its a db structure and not a flat file system. Can anyone give me any pointers, with preferably an example? Thanks svnadmin dump [PATH_TO_REPO] | svndumpfilter include [PATH_OF_BRANCH] > output.dmp svnadmin create [PATH_TO_NEW_REPO] svnadmin load [PATH_TO_NEW_REPO] < output.dmp Remarks: [PATH_TO_REPO] and [PATH_TO_NEW_REPO] is the local Filesystempath to your repository, not the URL [PATH_OF_BRANCH] is a repository relative path

What is the proper way to access BerkeleyDB with Perl?

為{幸葍}努か 提交于 2019-12-06 02:39:45
问题 I've been having some problems with using BerkeleyDB. I have multiple instances of the same code pointed to a single repository of DB files, and everything runs fine for 5-32 hours, then suddenly there is a deadlock. The command prompts stop right before executing a db_get or db_put or cursor creation call. So I'm simply asking for the proper way to handle these calls. Here's my general layout: This is how the environment and DBs are created: my $env = new BerkeleyDB::Env ( -Home => "

Does anyone have any experience using berkeley db with PHP?

泪湿孤枕 提交于 2019-12-05 23:22:16
I have to access and write to some berkeley db files that other applications share. I really haven't found anything out there about using this with PHP. It really doesn't seem very popular. Does anyone have any links or resources that I might be able to use to get things rolling? Thanks! Isn't this what the dba functions are for? http://php.net/manual/en/book.dba.php I've had some code some years ago with that. Didn't use it much however, because it was a somewhat inefficient data store. And it seems kind of pointless in the light of SQLite now anyway. But btw: http://schlueters.de/blog

Optimizing a BerkeleyDB JE Database

…衆ロ難τιáo~ 提交于 2019-12-05 22:49:54
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 for the EnvironmentConfig and the DatabaseConfig for optimizing the size and the speed of my database ? Many thanks, Pierre OK, I found the solution using the utility com.sleepycat.je.util.DbCacheSize packaged into berkeleyDB-JE java -cp je-4.0.103.jar com.sleepycat.je.util.DbCacheSize -records 3000000000 -key 8 Inputs: records=3000000000 keySize=8