Skip to Main Content

NoSQL Database

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.

KVStore - thread safty and reuse

919916Feb 24 2012 — edited Feb 24 2012
Hi,

I searched a while but can't find any relevant information for the following two questions:

1. Is it necessary to hold on to KVStore instance and reuse it when possible or is it efficient enough just call KVStoreFactory.getStore(kconfig) every time to get the store?
2. Can the KVStore instance be used by multiple thread?

Thanks in advance!

Comments

Greybird-Oracle
1. Is it necessary to hold on to KVStore instance and reuse it when possible or is it efficient enough just call KVStoreFactory.getStore(kconfig) every time to get the store?
Best to hold on to the instance, unless that's not practical. The instance holds state information, a background thread, etc, so it would be best to create it infrequently.
2. Can the KVStore instance be used by multiple thread?
Yes.

--mark
919916
Thanks for the answers!
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 23 2012
Added on Feb 24 2012
2 comments
2,686 views