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

Deletes with j:true slower on WT than MMAPv1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.7
    • Fix Version/s: 3.0.7, 3.1.9
    • Component/s: WiredTiger
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Epic Link:
    • Sprint:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: