Optimize for loops in bulk_shard_insert.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • None
    • ALL
    • TIG 2018-03-26, TIG 2018-04-09
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Samyukta Lanka
            Reporter:
            Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: