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

Optimize for loops in bulk_shard_insert.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • ALL
    • TIG 2018-03-26, TIG 2018-04-09
    • 0

    Description

      The JS code in bulk_shard_insert.js is causing the test to time out after we disabled the JIT.

      Some improvements can be made to speed up the test:
      1. Use itcount() instead of toArray() to take advantage of the gc() calls.

      2. Cache the bulk array instead of creating it 250 times.

      If these changes are still not sufficient, we should consider reducing the number of inserted documents.

      Attachments

        Activity

          People

            samy.lanka@mongodb.com Samyukta Lanka
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: