From b6123e91559aaebbb7959ae2b4aca2da95524d46 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Wed, 7 Feb 2024 12:23:13 -0300 Subject: [PATCH] Add hasura.select_limit env variable (#47) * Add hasura.select_limit env variable, switch Hasura image to latest * review --- build/dipdup.ghostnet.yml | 2 +- build/dipdup.mainnet.yml | 2 +- build/dipdup.thumbs.yml | 2 +- build/dipdup.yml | 2 +- docker-compose.test.yml | 1 + docker-compose.yml | 1 + 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/dipdup.ghostnet.yml b/build/dipdup.ghostnet.yml index 5374a5b..3fc3ca0 100644 --- a/build/dipdup.ghostnet.yml +++ b/build/dipdup.ghostnet.yml @@ -128,7 +128,7 @@ database: hasura: url: http://${HASURA_HOST:-hasura}:8080 admin_secret: ${ADMIN_SECRET:-changeme} - select_limit: 10000 + select_limit: ${HASURA_SELECT_LIMIT:-10000} allow_aggregation: false rest: true source: diff --git a/build/dipdup.mainnet.yml b/build/dipdup.mainnet.yml index e4167bc..cf6c33a 100644 --- a/build/dipdup.mainnet.yml +++ b/build/dipdup.mainnet.yml @@ -58,7 +58,7 @@ database: hasura: url: http://${HASURA_HOST:-hasura}:8080 admin_secret: ${ADMIN_SECRET:-changeme} - select_limit: 10000 + select_limit: ${HASURA_SELECT_LIMIT:-10000} allow_aggregation: false rest: true source: diff --git a/build/dipdup.thumbs.yml b/build/dipdup.thumbs.yml index 504fde5..cd89cba 100644 --- a/build/dipdup.thumbs.yml +++ b/build/dipdup.thumbs.yml @@ -61,7 +61,7 @@ database: hasura: url: http://${HASURA_HOST:-hasura}:8080 admin_secret: ${ADMIN_SECRET:-changeme} - select_limit: 100 + select_limit: ${HASURA_SELECT_LIMIT:-10000} allow_aggregation: false rest: true diff --git a/build/dipdup.yml b/build/dipdup.yml index 9026d6c..02ad505 100644 --- a/build/dipdup.yml +++ b/build/dipdup.yml @@ -185,7 +185,7 @@ database: hasura: url: http://${HASURA_HOST:-hasura}:8080 admin_secret: ${ADMIN_SECRET:-changeme} - select_limit: 10000 + select_limit: ${HASURA_SELECT_LIMIT:-10000} allow_aggregation: false rest: true source: diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 609562b..cd4f346 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -15,6 +15,7 @@ services: environment: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme} - ADMIN_SECRET=${ADMIN_SECRET:-changeme} + - HASURA_SELECT_LIMIT=${HASURA_SELECT_LIMIT:-10000} - IPFS_NODE_URI=${IPFS_NODE_URI:-https://ipfs.io} volumes: - ipfs:/etc/metadata/ipfs diff --git a/docker-compose.yml b/docker-compose.yml index f0f467f..b8e060b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: environment: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme} - ADMIN_SECRET=${ADMIN_SECRET:-changeme} + - HASURA_SELECT_LIMIT=${HASURA_SELECT_LIMIT:-10000} - IPFS_NODE_URI=${IPFS_NODE_URI:-https://ipfs.io} volumes: - ipfs:/etc/metadata/ipfs