0
0
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:
dwight 2011-06-20 20:30:51 -04:00
parent e33be1a519
commit 7e6536744b

View File

@ -524,7 +524,7 @@ namespace mongo {
void notifyOfWriteOp() {
if ( _qcCache.empty() )
return;
if ( ++_qcWriteCount >= 100 )
if ( ++_qcWriteCount >= 1000 )
clearQueryCache();
}
BSONObj indexForPattern( const QueryPattern &pattern ) {