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

Replace expensive ddl_utils calls to catalog client with batched requests

    • Fully Compatible
    • v5.0
    • Sharding EMEA 2021-05-31, Sharding EMEA 2021-06-14

      Since cluster writes can't be unit tested, some DDL utilities had been written using catalog client calls that can be very inefficient. Considering that also batched requests are unit-testable (when using the ConfigServerFixture - as in ddl util tests), some performance improvements can be applied.

      Performance problems:

      • The updateTags function uses the catalog client to update tags in an extremely inefficient way.
      • The deletion of chunks / tags can hit the catalog client timeout in case of a lot of documents to delete.

      Action points:

      • Replace updateTags logic with a simple batch update.
      • Replace the above mentioned delete calls with batched deletes.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: