Commit 12b2953
committed
feature: Add large_user_postcode flag and index
- relevant index used by postcode collection worker will be checking for active and small
postcodes (ie retired and large_user_postcode = false), and ordered by updated_at.
- Default to large_user_postcode: false, set to true in a rake task from the existing ONSPD
data. Only ONSPD records will ever be large_user_postcode: true, so we only need to
check them, but they must be set before the code to use them is added, and since this
will timeout a migration, we have to do it as a 2-phase deploy (1: migrate, update data,
2: update code.)1 parent 7df7b23 commit 12b2953
4 files changed
Lines changed: 45 additions & 1 deletion
File tree
- db
- migrate
- lib/tasks
- spec/lib/tasks
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments