updates
This commit is contained in:
parent
fd6295fed3
commit
ee397416e7
4 changed files with 167 additions and 0 deletions
53
daily/2022-05-31.org
Normal file
53
daily/2022-05-31.org
Normal file
|
@ -0,0 +1,53 @@
|
|||
:PROPERTIES:
|
||||
:ID: 5cead401-0557-42a9-a5d2-d32f3e2bdfad
|
||||
:END:
|
||||
#+title: 2022-05-31
|
||||
* [[id:d06d3ab4-c2d0-47c3-aae1-4395567fc3d2][Normalizing tags]] in production
|
||||
:PROPERTIES:
|
||||
:header-args:sql: :engine postgresql :cmdline "-U postgres postgres" :dir /docker:postgres: :exports both :cache yes :eval no-export
|
||||
:END:
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+begin_src sql
|
||||
SELECT COUNT(*)
|
||||
FROM accounts
|
||||
WHERE NOT normalized
|
||||
#+end_src
|
||||
|
||||
#+RESULTS[ba37582203de3bc2f2032b77542766039971dbcd]:
|
||||
| count |
|
||||
|-------|
|
||||
| 315 |
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+NAME: 10-top-accounts
|
||||
#+begin_src sql :results silent
|
||||
SELECT account_id
|
||||
FROM accounts
|
||||
WHERE NOT normalized ORDER BY total
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :var accounts=10-top-accounts :results file :eval no-export
|
||||
(let ((filename "~/git/normalize_account_tags/production/10-top-accounts"))
|
||||
(with-temp-file filename
|
||||
(insert (s-join "\n" (-map #'car accounts))))
|
||||
filename)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
[[file:~/git/normalize_account_tags/production/10-top-accounts]]
|
||||
* Updating subscriber-sync creation logic
|
||||
[[id:1ff6586e-2dba-41a2-a887-753cc5ac27c9][Recipient Service]] will be configured to read data from AppDB rather than
|
||||
DynamoDB. Subscriber sync will not know the subscriber's recipient record may
|
||||
not already exist, and has no way of looking up the recipient record to check.
|
||||
|
||||
** On Creation
|
||||
- Create recipient record if none exists for the subscriber's normalized email address
|
||||
- Associate the subscriber with the recipient record
|
||||
|
||||
** On Update
|
||||
- If the normalized email address has changed, look up the old and new recipient
|
||||
records and update their subscriber associations
|
||||
|
||||
** On Delete
|
||||
- Look up the recipient record and update the subscriber association
|
38
daily/2022-06-01.org
Normal file
38
daily/2022-06-01.org
Normal file
|
@ -0,0 +1,38 @@
|
|||
:PROPERTIES:
|
||||
:ID: 32353938-6c20-477b-81b5-d9e4ab808de1
|
||||
:END:
|
||||
#+title: 2022-06-01
|
||||
* [[id:d06d3ab4-c2d0-47c3-aae1-4395567fc3d2][Normalizing tags]] in production
|
||||
:PROPERTIES:
|
||||
:header-args:sql: :engine postgresql :cmdline "-U postgres postgres" :dir /docker:postgres: :exports both :cache yes :eval no-export
|
||||
:END:
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+begin_src sql
|
||||
SELECT COUNT(*)
|
||||
FROM accounts
|
||||
WHERE NOT normalized
|
||||
#+end_src
|
||||
|
||||
#+RESULTS[ba37582203de3bc2f2032b77542766039971dbcd]:
|
||||
| count |
|
||||
|-------|
|
||||
| 150 |
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+NAME: 11-top-accounts
|
||||
#+begin_src sql :results silent
|
||||
SELECT account_id
|
||||
FROM accounts
|
||||
WHERE NOT normalized ORDER BY total
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :var accounts=11-top-accounts :results file :eval no-export
|
||||
(let ((filename "~/git/normalize_account_tags/production/11-top-accounts"))
|
||||
(with-temp-file filename
|
||||
(insert (s-join "\n" (-map #'car accounts))))
|
||||
filename)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
[[file:~/git/normalize_account_tags/production/11-top-accounts]]
|
38
daily/2022-06-03.org
Normal file
38
daily/2022-06-03.org
Normal file
|
@ -0,0 +1,38 @@
|
|||
:PROPERTIES:
|
||||
:ID: 230deeda-1710-4fe6-9f15-d2920812a68f
|
||||
:END:
|
||||
#+title: 2022-06-03
|
||||
* [[id:d06d3ab4-c2d0-47c3-aae1-4395567fc3d2][Normalizing tags]] in production
|
||||
:PROPERTIES:
|
||||
:header-args:sql: :engine postgresql :cmdline "-U postgres postgres" :dir /docker:postgres: :exports both :cache yes :eval no-export
|
||||
:END:
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+begin_src sql
|
||||
SELECT COUNT(*)
|
||||
FROM accounts
|
||||
WHERE NOT normalized
|
||||
#+end_src
|
||||
|
||||
#+RESULTS[ba37582203de3bc2f2032b77542766039971dbcd]:
|
||||
| count |
|
||||
|-------|
|
||||
| 27 |
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+NAME: 12-top-accounts
|
||||
#+begin_src sql :results silent
|
||||
SELECT account_id
|
||||
FROM accounts
|
||||
WHERE NOT normalized ORDER BY total
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :var accounts=12-top-accounts :results file :eval no-export
|
||||
(let ((filename "~/git/normalize_account_tags/production/12-top-accounts"))
|
||||
(with-temp-file filename
|
||||
(insert (s-join "\n" (-map #'car accounts))))
|
||||
filename)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
[[file:~/git/normalize_account_tags/production/12-top-accounts]]
|
38
daily/2022-06-06.org
Normal file
38
daily/2022-06-06.org
Normal file
|
@ -0,0 +1,38 @@
|
|||
:PROPERTIES:
|
||||
:ID: 3728dbb0-bf51-4d82-a701-7dc63a35ceea
|
||||
:END:
|
||||
#+title: 2022-06-06
|
||||
* [[id:d06d3ab4-c2d0-47c3-aae1-4395567fc3d2][Normalizing tags]] in production
|
||||
:PROPERTIES:
|
||||
:header-args:sql: :engine postgresql :cmdline "-U postgres postgres" :dir /docker:postgres: :exports both :cache yes :eval no-export
|
||||
:END:
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+begin_src sql
|
||||
SELECT COUNT(*)
|
||||
FROM accounts
|
||||
WHERE NOT normalized
|
||||
#+end_src
|
||||
|
||||
#+RESULTS[ba37582203de3bc2f2032b77542766039971dbcd]:
|
||||
| count |
|
||||
|-------|
|
||||
| 13 |
|
||||
|
||||
#+CAPTION: Find the next set of least affected accounts
|
||||
#+NAME: 13-top-accounts
|
||||
#+begin_src sql :results silent
|
||||
SELECT account_id
|
||||
FROM accounts
|
||||
WHERE NOT normalized ORDER BY total
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp :var accounts=13-top-accounts :results file :eval no-export
|
||||
(let ((filename "~/git/normalize_account_tags/production/13-top-accounts"))
|
||||
(with-temp-file filename
|
||||
(insert (s-join "\n" (-map #'car accounts))))
|
||||
filename)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
[[file:~/git/normalize_account_tags/production/13-top-accounts]]
|
Loading…
Reference in a new issue