Manual:$wgBufferSQLResults

Details
Use buffered queries by default