Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is some cases which can affect your test. </p> <p>In general Mongo is better for that test. Look at <strong>mongo</strong> <a href="http://docs.mongodb.org/manual/faq/concurrency/" rel="nofollow">concurrency</a> specification. </p> <blockquote> <p>MongoDB uses a readers-writer <a href="http://docs.mongodb.org/manual/faq/concurrency/" rel="nofollow">1</a> lock that allows concurrent reads access to a database but gives exclusive access to a single write operation. </p> <p>When a read lock exists, many read operations may use this lock. However, when a write lock exists, a single write operation holds the lock exclusively, and no other read or write operations may share the lock.</p> <p>Locks are “writer greedy,” which means writes have preference over reads. When both a read and write are waiting for a lock, MongoDB grants the lock to the write.</p> </blockquote> <p>And <strong>redis</strong> concept is</p> <blockquote> <p>The fact that Redis operations are atomic is simply a consequence of the single-threaded event loop. The interesting point is atomicity is provided at no extra cost (it does not require synchronization). It can be exploited by the user to implement optimistic locking and other patterns without paying for the synchronization overhead.</p> </blockquote> <p>p.s. Another thing in redis is <a href="http://redis.io/topics/persistence" rel="nofollow">snapshoting</a> settings if you are using RDB as persistence storage type. This strategy means that you save db to disk each N seconds or if Y keys was changed. For example each 10 seconds or each 1000 keys.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload