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

Deletes with j:true slower on WT than MMAPv1

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.7, 3.1.9
    • Affects Version/s: 3.0.6, 3.1.7
    • Component/s: WiredTiger
    • None
    • Fully Compatible
    • ALL
    • Quint 9 09/18/15

      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
      

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

              Created:
              Updated:
              Resolved: