roam/daily/2022-05-26.org
2022-05-27 17:35:02 -04:00

2.3 KiB

2022-05-26

Normalizing tags in production

First pass

  SELECT COUNT(*)
  FROM accounts
  WHERE NOT normalized AND total <= 500
Find the next set of least affected accounts
count
371
  SELECT account_id
  FROM accounts
  WHERE NOT normalized AND total <= 500
  (let ((filename "~/git/normalize_account_tags/production/07-less-than-equal-to-five-hundred"))
    (with-temp-file filename
      (insert (s-join "\n" (-map #'car accounts))))
    filename)

/correlr/roam/src/commit/fd6295fed363a911cee7c5fed27dfec2ed6ee4f6/daily/~/git/normalize_account_tags/production/07-less-than-equal-to-five-hundred

Encountered mapping errors

There were a significant number of 503 errors being raised by mapping that affected the run. Only accounts that were normalized successfully were marked as complete. Mapping was restarted in production, clearing up the errors.

Resuming

  SELECT COUNT(*)
  FROM accounts
  WHERE NOT normalized AND total <= 500
Find the next set of least affected accounts
count
152
  SELECT account_id
  FROM accounts
  WHERE NOT normalized AND total <= 500
  (let ((filename "~/git/normalize_account_tags/production/08-less-than-equal-to-five-hundred"))
    (with-temp-file filename
      (insert (s-join "\n" (-map #'car accounts))))
    filename)

/correlr/roam/src/commit/fd6295fed363a911cee7c5fed27dfec2ed6ee4f6/daily/~/git/normalize_account_tags/production/08-less-than-equal-to-five-hundred