mirror of
https://github.com/google/nomulus.git
synced 2025-06-19 10:50:49 +02:00
Add Bloom filters to the Cloud SQL PremiumList schema (#306)
* Add Bloom filters to the Cloud SQL PremiumList schema They are slightly different from the existing Bloom filters stored in Datastore in that they now use an ASCII String encoding rather than the more generic CharSequence, and there is no maximum size (whereas we previously had to live within the 1 MB max entity size for Datastore).
This commit is contained in:
parent
5e19cb7a02
commit
c130cdb042
8 changed files with 218 additions and 4 deletions
|
@ -0,0 +1,15 @@
|
|||
-- Copyright 2019 The Nomulus Authors. All Rights Reserved.
|
||||
--
|
||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||
-- you may not use this file except in compliance with the License.
|
||||
-- You may obtain a copy of the License at
|
||||
--
|
||||
-- http://www.apache.org/licenses/LICENSE-2.0
|
||||
--
|
||||
-- Unless required by applicable law or agreed to in writing, software
|
||||
-- distributed under the License is distributed on an "AS IS" BASIS,
|
||||
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
-- See the License for the specific language governing permissions and
|
||||
-- limitations under the License.
|
||||
|
||||
alter table "PremiumList" add column if not exists bloom_filter bytea not null;
|
|
@ -130,6 +130,7 @@
|
|||
|
||||
create table "PremiumList" (
|
||||
revision_id bigserial not null,
|
||||
bloom_filter bytea not null,
|
||||
creation_timestamp timestamptz not null,
|
||||
currency bytea not null,
|
||||
name text not null,
|
||||
|
|
|
@ -92,7 +92,8 @@ CREATE TABLE public."PremiumList" (
|
|||
revision_id bigint NOT NULL,
|
||||
creation_timestamp timestamp with time zone NOT NULL,
|
||||
currency bytea NOT NULL,
|
||||
name text NOT NULL
|
||||
name text NOT NULL,
|
||||
bloom_filter bytea NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue