Multiple concurrent reads and a single write

26 views
Skip to first unread message

vijay kumar sabbu

unread,
Oct 30, 2014, 5:52:43 AM10/30/14
to mobile-c...@googlegroups.com
Hi,

I am using couchbase lite no-sql db in my iOS application. Currently I have created a serial queue and set this as dispatch_queue for my CBLManager. So all reads and writes I am accessing through this queue but all reads are also become serial now. Because of this there is a performance impact. How can I have a concurrent reads (parallelised by multi cores) and seqential write allowed?


Jens Alfke

unread,
Oct 30, 2014, 1:42:43 PM10/30/14
to mobile-c...@googlegroups.com

On Oct 30, 2014, at 2:52 AM, vijay kumar sabbu <sb.vija...@gmail.com> wrote:

How can I have a concurrent reads (parallelised by multi cores) and seqential write allowed?

Create multiple copies of the CBLManager (call -copy on it) and use each one on a separate dispatch queue.

—Jens
Reply all
Reply to author
Forward
0 new messages