Comments (4)
Oops, I uploaded incorrect versions of the tests. With the console output you
can see that the index key is present, and even get back the recid for the key,
but trying to get the value object returns null.
Original comment by [email protected]
on 6 May 2011 at 12:39
Attachments:
from jdbm2.
I tried Base64 encoding the byte arrays first to make sure there were no
non-ASCII characters being output, after reading the commentary for Issue 5.
Same problem.
Also, it's non-deterministic - the read fails on a different record each time,
so it's unlikely to do with the formatting of one of the records anyway.
The new version requires the Commons Codec jar for the Base64 encoding.
Original comment by [email protected]
on 6 May 2011 at 1:32
Attachments:
from jdbm2.
JDBM is fine. You used wrong method. On 'StoreReadTest.java' line 36 should be:
String s = index.getPrimaryValues(key).iterator().next();
Problem is that there are two methods with very similar name but different
meaning. One of them returns primary values for _secondary key_ other for
_primary key_. I will change method names in JDBM3.
Original comment by [email protected]
on 5 Jun 2011 at 1:57
- Changed state: Done
from jdbm2.
What worked perfectly. Many thanks for setting me straight. This is a really
easy to use library by the way, great work.
I can proceed with my performance tests now. I don't suppose there's any
performance benchmark lying around ? One thing I've noticed so far is that
under Mac OS the writes are way faster than the reads which is very odd. It's
as expected on Windows. I'll have to get profiling...
Original comment by [email protected]
on 9 Jun 2011 at 2:04
from jdbm2.
Related Issues (18)
- Performance and threading patch HOT 9
- HTreeMap.clear() fails on maps with ConcurrentModificationException HOT 1
- NPE in BTree.getRoot() HOT 2
- Improving the SoftReference cache HOT 18
- java.lang.InternalError when retrieveing from a large map HOT 6
- HashBucket.writeExternal is destructive when HTree has a custom key serializer HOT 3
- [Enhancement] RecordFile.read() implementation doesn't make sense HOT 1
- [Enhancement] RecordHeader.setAvailableSize() speed improvement HOT 5
- [Bug fix] Disk memory leak in BTree.java HOT 1
- .t file not deleted. HOT 3
- Bug in getFirstLargerThan in FreePhysicalRowIdPage.java HOT 1
- jdbm.helper.Serialization.writeLongArray(DataOutputStream, long[]) is broken HOT 2
- Access JDBM database concurrently HOT 1
- java.lang.Error: Bad magic on log file, what does it mean? HOT 1
- Bpage Header Exception after kill and resume HOT 3
- Need forceClose
- File left locked after exception during init HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdbm2.