We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32c1561 commit f133368Copy full SHA for f133368
src/test/java/org/lmdbjava/TutorialTest.java
@@ -310,7 +310,9 @@ public void tutorial4() throws IOException {
310
final ByteBuffer key = allocateDirect(env.getMaxKeySize());
311
final ByteBuffer val = allocateDirect(700);
312
313
- // Insert some data
+ // Insert some data. Note the ByteBuffer byte order is platform specific.
314
+ // LMDB does not store or set byte order, but it's critical to sort keys.
315
+ // If your numeric keys don't sort as expected, review buffer byte order.
316
val.putInt(100);
317
key.putInt(1);
318
db.put(txn, key, val);
0 commit comments