{"action":"created","issue":{"url":"https://api.github.com/repos/deephacks/lmdbjni/issues/17","labels_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/17/comments","events_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/17/events","html_url":"https://github.com/deephacks/lmdbjni/issues/17","id":55309150,"number":17,"title":"Add more SeekOps","user":{"login":"dieselpoint","id":1304471,"avatar_url":"https://avatars.githubusercontent.com/u/1304471?v=3","gravatar_id":"","url":"https://api.github.com/users/dieselpoint","html_url":"https://github.com/dieselpoint","followers_url":"https://api.github.com/users/dieselpoint/followers","following_url":"https://api.github.com/users/dieselpoint/following{/other_user}","gists_url":"https://api.github.com/users/dieselpoint/gists{/gist_id}","starred_url":"https://api.github.com/users/dieselpoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieselpoint/subscriptions","organizations_url":"https://api.github.com/users/dieselpoint/orgs","repos_url":"https://api.github.com/users/dieselpoint/repos","events_url":"https://api.github.com/users/dieselpoint/events{/privacy}","received_events_url":"https://api.github.com/users/dieselpoint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-23T17:34:59Z","updated_at":"2015-01-23T20:44:29Z","closed_at":null,"body":"org.fusesource.lmdbjni.SeekOp includes only two SeekOps, KEY and RANGE.\r\n\r\nLmdb supports a ton more in JNI.java. In particular, MDB_FIRST would be helpful so we can seek to the first record. But there's no reason not to add the rest of them.\r\n\r\nI would do this myself and do a pull request, but I still can't do a build in Eclipse.\r\n"},"comment":{"url":"https://api.github.com/repos/deephacks/lmdbjni/issues/comments/71262450","html_url":"https://github.com/deephacks/lmdbjni/issues/17#issuecomment-71262450","issue_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/17","id":71262450,"user":{"login":"ccleve","id":1127338,"avatar_url":"https://avatars.githubusercontent.com/u/1127338?v=3","gravatar_id":"","url":"https://api.github.com/users/ccleve","html_url":"https://github.com/ccleve","followers_url":"https://api.github.com/users/ccleve/followers","following_url":"https://api.github.com/users/ccleve/following{/other_user}","gists_url":"https://api.github.com/users/ccleve/gists{/gist_id}","starred_url":"https://api.github.com/users/ccleve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccleve/subscriptions","organizations_url":"https://api.github.com/users/ccleve/orgs","repos_url":"https://api.github.com/users/ccleve/repos","events_url":"https://api.github.com/users/ccleve/events{/privacy}","received_events_url":"https://api.github.com/users/ccleve/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T20:44:29Z","updated_at":"2015-01-23T20:44:29Z","body":"If you've got the time to do it, by all means...\r\n\r\nI think there are some advantages to having a BerkeleyDB / LevelDB / RocksDB compatibility layer. Makes it much easier for people to adopt.\r\n\r\nI also think that having some kind of zero-copy API would be helpful. If Lmdb or some other Java-based db can surface some MappedByteBuffers then the performance will be much better. It's hard to do because the ByteBuffer interface is so awful, but I've tried to do it by creating my own wrappers. I've had limited success. It looks like the Lmdbjni code tries to do the same thing with its DirectBuffer.\r\n\r\n\r\n"}}