mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
increase query cache clear threshold
This commit is contained in:
parent
e33be1a519
commit
7e6536744b
@ -524,7 +524,7 @@ namespace mongo {
|
||||
void notifyOfWriteOp() {
|
||||
if ( _qcCache.empty() )
|
||||
return;
|
||||
if ( ++_qcWriteCount >= 100 )
|
||||
if ( ++_qcWriteCount >= 1000 )
|
||||
clearQueryCache();
|
||||
}
|
||||
BSONObj indexForPattern( const QueryPattern &pattern ) {
|
||||
|
Loading…
Reference in New Issue
Block a user