Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

TupleBinding for complex objects containing other complex objects

aj2568Sep 2 2016 — edited Sep 10 2016

I am using JE 5.0 and have been using the pass-through ByteArrayBinding as an EntryBinding so far. I came across documentation suggesting that a custom TupleBinding has better performance (https://docs.oracle.com/cd/E17277_02/html/GettingStartedGuide/bindAPI.html#customTuple as well as the GettingStarted guide). So I plan to see if its feasible and preferred option for my use-case.

Example shown in the above article explains how to read primitive types from TupleInput and write primitive type to TupleOutput while defining a custom TupleBinding. However, it doesn't explain how to handle writing and reading complex types to/from TupleOutput and TupleInput respectively.

Any suggestion would be appreciated in finding the best practice to handle complex types inside a custom TupleBinding. Should I be using resorting to read/writeByte[] for complex types? If yes, then would I still get some performance improvements? Or should I instead start using SerialBinding to get some performance improvement over ByteArrayBinding?

Thanks,

Amol

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 8 2016
Added on Sep 2 2016
1 comment
297 views