Skip to content

Commit

Permalink
Merge 6f525d6 into 46e8116
Browse files Browse the repository at this point in the history
  • Loading branch information
xin-hedera authored Jul 23, 2021
2 parents 46e8116 + 6f525d6 commit ade6bd7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 23 deletions.
2 changes: 1 addition & 1 deletion charts/hedera-mirror/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ timescaledb:
enabled: false
image:
pullPolicy: IfNotPresent
tag: pg13.3-ts2.3.0-p0
tag: pg13.3-ts2.3.1-p1
loadBalancer:
enabled: false
patroni:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "3.7"
services:
db:
image: postgres:13.3-alpine # Or timescale/timescaledb-ha:pg13.3-ts2.3.0-p0
image: postgres:13.3-alpine # Or timescale/timescaledb-ha:pg13.3-ts2.3.1-p1
restart: unless-stopped
stop_grace_period: 2m
stop_signal: SIGTERM
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
embedded:
postgresql:
docker-image: timescale/timescaledb-ha:pg13.3-ts2.3.0-p0
docker-image: timescale/timescaledb-ha:pg13.3-ts2.3.1-p1
spring:
flyway:
baselineVersion: 1.999.999
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,11 @@ select create_hypertable('account_balance', 'consensus_timestamp', chunk_time_in
select create_hypertable('account_balance_file', 'consensus_timestamp', chunk_time_interval => ${chunkTimeInterval},
create_default_indexes => false, if_not_exists => true);

-- address_book
select create_hypertable('address_book', 'start_consensus_timestamp', chunk_time_interval => ${chunkTimeInterval},
create_default_indexes => false, if_not_exists => true);
-- address_book hyper table creation skipped as small tables won't benefit from timescaledb scalability

-- address_book_entry
select create_hypertable('address_book_entry', 'consensus_timestamp', chunk_time_interval => ${chunkTimeInterval},
create_default_indexes => false, if_not_exists => true);
-- address_book_entry hyper table creation skipped as small tables won't benefit from timescaledb scalability

-- address_book_service_endpoint
select create_hypertable('address_book_service_endpoint', 'consensus_timestamp',
chunk_time_interval => ${chunkTimeInterval},
create_default_indexes => false, if_not_exists => true);
-- address_book_service_endpoint hyper table creation skipped as small tables won't benefit from timescaledb scalability

-- contract_result
select create_hypertable('contract_result', 'consensus_timestamp', chunk_time_interval => ${chunkTimeInterval},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ $$ language plpgsql;
select set_integer_now_func('assessed_custom_fee', 'latest_consensus_timestamp');
select set_integer_now_func('account_balance', 'latest_consensus_timestamp');
select set_integer_now_func('account_balance_file', 'latest_consensus_timestamp');
select set_integer_now_func('address_book_entry', 'latest_consensus_timestamp');
select set_integer_now_func('address_book_service_endpoint', 'latest_consensus_timestamp');
select set_integer_now_func('contract_result', 'latest_consensus_timestamp');
select set_integer_now_func('crypto_transfer', 'latest_consensus_timestamp');
select set_integer_now_func('custom_fee', 'latest_consensus_timestamp');
Expand All @@ -51,13 +49,11 @@ alter table account_balance
alter table account_balance_file
set (timescaledb.compress, timescaledb.compress_segmentby = 'node_account_id');

-- address_book skipped as update (end_consensus_timestamp) on compressed chunk is not allowed
-- address_book skipped as not a hyper table

alter table address_book_entry
set (timescaledb.compress, timescaledb.compress_segmentby = 'consensus_timestamp, node_id');
-- address_book_entry skipped as not a hyper table

alter table address_book_service_endpoint
set (timescaledb.compress, timescaledb.compress_segmentby = 'consensus_timestamp, node_id, ip_address_v4, port');
-- address_book_service_endpoint skipped as not a hyper table

alter table contract_result
set (timescaledb.compress);
Expand Down Expand Up @@ -121,7 +117,6 @@ alter table transaction_signature
select add_compression_policy('assessed_custom_fee', bigint '${compressionAge}');
select add_compression_policy('account_balance', bigint '${compressionAge}');
select add_compression_policy('account_balance_file', bigint '${compressionAge}');
select add_compression_policy('address_book_entry', bigint '${compressionAge}');
select add_compression_policy('contract_result', bigint '${compressionAge}');
select add_compression_policy('crypto_transfer', bigint '${compressionAge}');
select add_compression_policy('custom_fee', bigint '${compressionAge}');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
embedded:
postgresql:
docker-image: timescale/timescaledb-ha:pg13.3-ts2.3.0-p0
docker-image: timescale/timescaledb-ha:pg13.3-ts2.3.1-p1
2 changes: 1 addition & 1 deletion hedera-mirror-rest/__tests__/integrationDbOps.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const v1SchemaConfigs = {
const v2SchemaConfigs = {
docker: {
imageName: 'timescale/timescaledb-ha',
tagName: 'pg13.3-ts2.3.0-p0',
tagName: 'pg13.3-ts2.3.1-p1',
},
flyway: {
baselineVersion: '1.999.999',
Expand Down

0 comments on commit ade6bd7

Please sign in to comment.