Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re:sub-databases #7

Open
pietermartin opened this issue Nov 3, 2013 · 2 comments
Open

Re:sub-databases #7

pietermartin opened this issue Nov 3, 2013 · 2 comments

Comments

@pietermartin
Copy link

Hi,

Is it possible to use the sub-database feature using your JNI mapping?
I had a look but not being familiar with c and JNI I can not see how this would work.

Thanks
Pieter

@harningt
Copy link

Sub-databases wouldn't work in the current setup for the 'safe' usage in LMDB... in fact it uses an "x" sub-database instead of using null to denote that the "main" database should be used.

See:
org.fusesource.lmdbjni.leveldb.LMDB - open

The underlying JNI interface does support it via:
org.fusesource.lmdbjni.Env - openDatabase

@chirino
Copy link
Owner

chirino commented May 22, 2014

Correct 'org.fusesource.lmdbjni.leveldb.LMDB' does not support it because
that implements the simpler LevelDB api which also does not support sub
databases.

On Thu, May 22, 2014 at 4:43 PM, Thomas Harning Jr <[email protected]

wrote:

Sub-databases wouldn't work in the current setup for the 'safe' usage in
LMDB... in fact it uses an "x" sub-database instead of using null to denote
that the "main" database should be used.

See:
org.fusesource.lmdbjni.leveldb.LMDB - open

The underlying JNI interface does support it via:
org.fusesource.lmdbjni.Env - openDatabase


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-43941565
.

Hiram Chirino
Engineering | Red Hat, Inc.
[email protected] | fusesource.com | redhat.com
skype: hiramchirino | twitter: @hiramchirino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants