Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20176

Deletes with j:true slower on WT than MMAPv1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0.6, 3.1.7
    • 3.0.7, 3.1.9
    • WiredTiger
    • None
    • Fully Compatible
    • ALL
    • Quint 9 09/18/15

    Description

      j:true is expectedly slower than not, but WT is much slower than MMAPv1:

      MMAPv1

      > for(x=0;x<10000;x++){db.test.insert( { x : x } ) }
      WriteResult({ "nInserted" : 1 })
      > var start=new Date();db.test.remove( { } );duration=new Date() - start
      70
      > for(x=0;x<10000;x++){db.test.insert( { x : x } ) }
      WriteResult({ "nInserted" : 1 })
      > var start=new Date();db.test.remove( { }, { writeConcern : {j:true}} );duration=new Date() - start
      94
      

      WT

      > for(x=0;x<10000;x++){db.test.insert( { x : x } ) }
      WriteResult({ "nInserted" : 1 })
      > var start=new Date();db.test.remove( { } );duration=new Date() - start
      189
      > for(x=0;x<10000;x++){db.test.insert( { x : x } ) }
      WriteResult({ "nInserted" : 1 })
      > var start=new Date();db.test.remove( { }, { writeConcern : {j:true}} );duration=new Date() - start
      95113
      

      Attachments

        Issue Links

          Activity

            People

              geert.bosch@mongodb.com Geert Bosch
              andre.defrere@mongodb.com Andre de Frere
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: