<commit_before>(ns migrations.012-add-sync-delete-work-indexes
  "Creates indexes to improve performance working with sync delete work table"
  (:require [config.mdb-migrate-helper :as h]))

(defn up
  []
  (println "migrations.012-add-sync-delete-work-indexes")
  (h/sql "CREATE INDEX sdw_cid_rid ON sync_delete_work(concept_id, revision_id)")
  (h/sql "CREATE INDEX sdw_deleted ON sync_delete_work(deleted)"))

(defn down
  []
  (println "migrations.012-add-sync-delete-work-indexes")
  (h/sql "DROP INDEX sdw_cid_rid")
  (h/sql "DROP INDEX sdw_deleted"))<commit_msg>CMR-1375: Adding up and down to comment<commit_after>(ns migrations.012-add-sync-delete-work-indexes
  "Creates indexes to improve performance working with sync delete work table"
  (:require [config.mdb-migrate-helper :as h]))

(defn up
  []
  (println "migrations.012-add-sync-delete-work-indexes up")
  (h/sql "CREATE INDEX sdw_cid_rid ON sync_delete_work(concept_id, revision_id)")
  (h/sql "CREATE INDEX sdw_deleted ON sync_delete_work(deleted)"))

(defn down
  []
  (println "migrations.012-add-sync-delete-work-indexes down")
  (h/sql "DROP INDEX sdw_cid_rid")
  (h/sql "DROP INDEX sdw_deleted"))
{'fraction_non_alphanumeric': 0.1296928327645051, 'fraction_numerical': 0.01877133105802048, 'mean_word_length': 4.924242424242424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2497319', 'n_tokens_mistral': 449, 'n_tokens_neox': 445, 'n_words': 99}