Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ CARDANO_SUBMIT_API_PORT=8092

## DB Sync Variables
# RESTORE_SNAPSHOT=path/to/snapshot/tgz
CARDANO_DB_SYNC_VERSION=13.7.1.0
CARDANO_DB_SYNC_VERSION=13.7.2.1
CARDANO_DB_SYNC_DIR=db-sync-data

## Hasura Variables
HASURA_PORT=8090
CARDANO_GRAPHQL_VERSION=9.0.0
CARDANO_GRAPHQL_VERSION=9.0.1

## Token Registry Variables
TOKEN_REGISTRY_VERSION=1.6.0
Expand Down
4 changes: 2 additions & 2 deletions .env.docker-compose-preprod
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ CARDANO_SUBMIT_API_PORT=8093

## DB Sync Variables
# RESTORE_SNAPSHOT=path/to/snapshot/tgz
CARDANO_DB_SYNC_VERSION=13.7.1.0
CARDANO_DB_SYNC_VERSION=13.7.2.1
CARDANO_DB_SYNC_DIR=/opt/graph-ql-preprod/db-sync-data

## Hasura Variables
HASURA_PORT=8091
CARDANO_GRAPHQL_VERSION=9.0.0
CARDANO_GRAPHQL_VERSION=9.0.1

## Token Registry Variables
TOKEN_REGISTRY_VERSION=1.6.0
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Check the [releases] for the latest version.
``` console
git clone \
--single-branch \
--branch 9.0.0 \
--branch 9.0.1 \
--recurse-submodules \
https://github.com/cardano-foundation/cardano-graphql.git \
&& cd cardano-graphql
Expand Down Expand Up @@ -167,6 +167,24 @@ docker compose logs -f index-service

:information_source: _Index creation can take several hours but significantly speeds up queries for transactions by address and asset lookups. See [Index Service Documentation](./packages/index-service/README.md) for details on created indexes, customization, and best practices._

### PostgreSQL 17 Configuration (Custom Deployments)

If you are running a custom PostgreSQL 17 deployment (not using our docker-compose), add the following to your `postgresql.conf` to prevent query backlog under concurrent load:

```
max_parallel_workers_per_gather = 0
```

Or apply it at runtime:
```sql
ALTER SYSTEM SET max_parallel_workers_per_gather = 0;
```
```sql
SELECT pg_reload_conf();
```

This is applied automatically when using our docker-compose stack.

### Check Cardano DB sync progress
Use the GraphQL Playground in the browser at http://localhost:3100/graphql:
> **_Note_** This Query is not available in early Era's of Cardano.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- POSTGRES_USER_FILE=/run/secrets/postgres_user
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
command: -p ${POSTGRES_PORT}
command: -p ${POSTGRES_PORT} -c max_parallel_workers_per_gather=0
secrets:
- postgres_db
- postgres_password
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"engines": {
"node": ">=14.15.0"
},
"version": "9.0.0",
"version": "9.0.1",
"private": true,
"workspaces": [
"packages/*"
Expand Down
6 changes: 3 additions & 3 deletions packages/api-cardano-db-hasura/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/api-cardano-db-hasura",
"version": "9.0.0",
"version": "9.0.1",
"description": "Module for interfacing with the Cardano DB, populated by cardano-db-sync that utilises Hasura for a powerful query interface",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
"schema.graphql"
],
"dependencies": {
"@cardano-graphql/util": "9.0.0",
"@cardano-graphql/util": "9.0.1",
"@cardanosolutions/json-bigint": "^1.0.0",
"@emurgo/cip14-js": "^2.0.0",
"@graphql-tools/delegate": "^6.2.4",
Expand Down Expand Up @@ -65,7 +65,7 @@
"ts-log": "^2.2.3"
},
"devDependencies": {
"@cardano-graphql/util-dev": "9.0.0",
"@cardano-graphql/util-dev": "9.0.1",
"@graphql-codegen/cli": "^1.21.8",
"@graphql-codegen/typescript": "^1.23.0",
"@graphql-codegen/typescript-graphql-files-modules": "^1.18.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ function startAssetPolling (
setupStarted = true
try {
await hasuraBackgroundClient.initialize()
const lastSeenId = await hasuraBackgroundClient.getMaxMultiAssetId(config.db)
const backfilledAssetIds = await hasuraBackgroundClient.backfillMissingAssets(config.db)
await worker.initQueue()
const lastSeenId = await hasuraBackgroundClient.getMaxMultiAssetId(config.db)
startAssetPolling(hasuraBackgroundClient, worker, config.db, lastSeenId, logger)
await metadataClient.initialize()
await worker.start()
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/cli",
"version": "9.0.0",
"version": "9.0.1",
"description": "Management tool for managing a Cardano GraphQL deployment",
"main": "./dist/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/client-ts",
"version": "9.0.0",
"version": "9.0.1",
"description": "A client package for Cardano GraphQL, including the GraphQL schema and TypeScript definitions generated from it",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/server",
"version": "9.0.0",
"version": "9.0.1",
"description": "Serve the Cardano GraphQL API over HTTP",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/cardano-foundation/cardano-graphql/blob/master/packages/server/README.md",
"dependencies": {
"@cardano-graphql/api-cardano-db-hasura": "9.0.0",
"@cardano-graphql/api-cardano-db-hasura": "9.0.1",
"@graphql-tools/merge": "^6.2.17",
"apollo-metrics": "^1.0.1",
"apollo-server-core": "^2.25.3",
Expand All @@ -45,7 +45,7 @@
"ts-log": "^2.2.3"
},
"devDependencies": {
"@cardano-graphql/util-dev": "9.0.0",
"@cardano-graphql/util-dev": "9.0.1",
"@graphql-codegen/cli": "^1.21.8",
"@types/death": "^1.1.1",
"@types/fs-extra": "^9.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/util-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/util-dev",
"version": "9.0.0",
"version": "9.0.1",
"description": "Common development utilities",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/cardano-foundation/cardano-graphql/blob/master/packages/util-dev/README.md",
"devDependencies": {
"@cardano-graphql/util": "9.0.0",
"@cardano-graphql/util": "9.0.1",
"shx": "^0.3.2"
},
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-graphql/util",
"version": "9.0.0",
"version": "9.0.1",
"description": "Common utilities",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
Loading