Add Cloud SQL premium list caches and compare prices with Datastore (#376)

* Add Cloud SQL premium list caches and compare prices with Datastore

Nothing will fail if the prices can't be loaded from Cloud SQL, or if the prices
are different. All that happens is that the error is logged. Then, once this is
running in production for awhile, we'll look at the logs and see if there will
be any pricing implications from switching over to the Cloud SQL version of the
premium lists.

* Add setMaxResults(1) per code review

* Add tests and reorder public functions

* Don't statically import caches

* Improve test pass rate

* Merge branch 'master' into dual-read-premium

* Add PremiumEntry mapping

* Allow update

* Revert column order

* Alphabetize PremiumEntry columns

* Don't bother trying to enforce order

* Private constructor
This commit is contained in:
Ben McIlwain 2019-12-11 16:20:19 -05:00 committed by GitHub
parent 3aad8b6aa7
commit db7fcf6c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 438 additions and 17 deletions

View file

@ -132,8 +132,8 @@
create table "PremiumEntry" (
revision_id int8 not null,
price numeric(19, 2) not null,
domain_label text not null,
price numeric(19, 2) not null,
primary key (revision_id, domain_label)
);