You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: backfill_code_suggestions_namespace_settings.rb
    path of file: ./repos/gitlabhq/lib/gitlab/background_migration
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module BackgroundMigration
    # This class sets de
    
      def perform
        TYPE_VALUE_PAIRS.each do |pair|
          each_sub_batch do |sub_batch|
            sub_batch.joins(NAMESPACES_JOIN)
              .where(namespaces: { type: pair[:type] })
              .update_all(code_suggestions: pair[:value])
          end
        end
      end