Answer the question
In order to leave comments, you need to log in
What is the probability of hitting a lock if you have 5-7 requests per second?
MongoDB 3.0X
If I have 5-7 mixed requests per second to the database from PHP.
Answer the question
In order to leave comments, you need to log in
With a sufficiently long use, the probability increases up to 100%, in 10 minutes of the test, there may not be any problem, but maybe there will be. But for a day of work, this probability increases significantly, but for a year?
So expect 100% collision and solve the problem based on that assumption.
I agree with Vyalkov, speaking within the terver, you need to determine the time interval, when this interval tends to infinity, the probability of almost any event is 1)
but does it matter for 5-7 requests, it will be unlocked and executed a little later, you don’t notice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question