berkeley-db

Alternative to BerkeleyDB?

旧城冷巷雨未停 提交于 2019-12-03 02:16:10
问题 I'm looking for a dbm-like library that I can use in place of Berkeley DB, which I'm currently using. My main reason for switching is the licensing fees for BDB are pretty high (free for open source apps, but my employer does not want to open source this particular app for various reasons). I've looked briefly at qdbm but it doesn't look like it will fill my needs -- lots of keys (several million) and large data items (> 1-5 megabytes). Before I continue my search I figured I'd ask because it

Looking for a lightweight java-compatible in-memory key-value store [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-03 01:52:26
Berkeley DB would be the best choice probably but I can't use it due to licensing issues. Are there any alternatives? Fuad Malikov You can try Hazelcast . Just add hazelcast.jar to your classpath. And start coding java.util.Map map = Hazelcast.getMap("myMap"); You'll get an in-memory, distributed, dynamically scalable data grid which performs super fast. Your question could mean one of two things. If you mean a data structure for storing key-value pairs, use one of the Map instances that are a standard part of the JDK. If however you are after an in-memory key-value store then I would suggest

Best Python module for Berkeley DB? [closed]

六眼飞鱼酱① 提交于 2019-12-03 01:45:54
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. According to the Python 2.6.5 docs [1], the bsddb module has been deprecated for removal in Python 3.0. What module/wrapper should I be using instead? [1] http://docs.python.org/library/bsddb.html I recommend pyBSDdb (from which the version currently in Python standard's library was taken -- but the stand-alone project is more actively maintained and far from deprecated;-). 来源: https://stackoverflow.com/questions/2597068

Looking for a drop-in replacement for a java.util.Map

梦想的初衷 提交于 2019-12-02 19:29:52
Problem Following up on this question , it seems that a file- or disk-based Map implementation may be the right solution to the problems I mentioned there. Short version: Right now, I have a Map implemented as a ConcurrentHashMap . Entries are added to it continually, at a fairly fixed rate. Details on this later. Eventually, no matter what, this means the JVM runs out of heap space. At work, it was (strongly) suggested that I solve this problem using SQLite, but after asking that previous question, I don't think that a database is the right tool for this job. So - let me know if this sounds

Alternative to BerkeleyDB?

感情迁移 提交于 2019-12-02 14:14:48
I'm looking for a dbm-like library that I can use in place of Berkeley DB, which I'm currently using. My main reason for switching is the licensing fees for BDB are pretty high (free for open source apps, but my employer does not want to open source this particular app for various reasons). I've looked briefly at qdbm but it doesn't look like it will fill my needs -- lots of keys (several million) and large data items (> 1-5 megabytes). Before I continue my search I figured I'd ask because it seems there are tons of dbm-like libraries out there. Simon Schmidt C/C++ http://sphia.org/ a Key

store list in key value database

╄→尐↘猪︶ㄣ 提交于 2019-12-02 13:11:57
问题 I search for best way to store lists associated with key in key value database (like berkleydb or leveldb ) For example: I have users and orders from user to user I want to store list of orders ids for each user to fast access with range selects (for pagination) How to store this structure? I don't want to store it in serializable format for each user: user_1_orders = serialize(1,2,3..) user_2_orders = serialize(1,2,3..) beacuse list can be long I think about separate db file for each user

Issue with Hash Map Space and Performance

不羁岁月 提交于 2019-12-02 03:30:31
问题 I have to store more than 100 millions of key-values in my HashMultiMap (key can have multiple values). Can anybody help me which one is faster for both storing and searching: 1) Berkeley DB 2) Tokyo Cabinet 3) H2 4) EhCache 5) Or anyothers Another point, is performance of those approximately identical to in-memory hash map ? A little bit guidance will be more helpful. Thanks. NB: information about any one of these is also helpful. 回答1: I'd recommend Redis. It's more of a data structure store

How to Fix the Broken BSDDB Install in the Default Python Package on Mac OS X 10.5 Leopard?

为君一笑 提交于 2019-12-01 07:38:07
Do the following on the default Python install on Mac OS X 10.5 (Leopard) w/ Developer Tools: noel ~ : python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import bsddb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bsddb/__init__.py", line 51, in <module> import _bsddb ImportError: No module named _bsddb nice, huh? How do I fix this without giving up and installing

How to Fix the Broken BSDDB Install in the Default Python Package on Mac OS X 10.5 Leopard?

廉价感情. 提交于 2019-12-01 05:08:47
问题 Do the following on the default Python install on Mac OS X 10.5 (Leopard) w/ Developer Tools: noel ~ : python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import bsddb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/bsddb/__init__.py", line 51, in <module> import _bsddb

Is it possible to access a BDB from pure Java?

我的未来我决定 提交于 2019-12-01 00:27:05
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. 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