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!

Feature: byte buffer reuse

- MyX -May 20 2014 — edited May 31 2014

Hello!

Is it possible to make something a-la 'setPartial' in DatabaseEntry class to allow application provided byte buffer to be used for reading keys when asked? I don't know how common is it but I have several dedicated worker threads and those threads have all the buffers pre-allocated to execute queries and create/serialise objects, however, every database read operation creates it own byte array for any keys read. This array is used on place and is not required when next row is read but is really clogs GC especially considering that lengths are different every time. Sometimes there could be millions of reads per minute and all of them could be done re-using same buffer, large enough to accommodate my keys.

Thanks.

Comments

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

Post Details

Locked on Jun 28 2014
Added on May 20 2014
6 comments
3,406 views