Jean-Baptiste G.

Results 120 comments of Jean-Baptiste G.

Less versatile than function arguments but still useful and does not break hermeticity: https://github.com/NixOS/hydra/pull/1143

The db-sync snapshots are meant to be independent of cardano-graphql version, which is why graphql tables are not included.

Transferred the issue to https://github.com/input-output-hk/cardano-graphql @rhyslbw any idea how a graphql tables/views quick restoration could be done in a sane way?

Maybe a script-based solution could work, eg.: ```console $ LAST_SNAPSHOT=$(curl --silent http://update-cardano-mainnet.iohk.io.s3.amazonaws.com/\?list-type\=2\&delimiter\=/\&prefix\=cardano-db-sync/13/ \ | nix run nixpkgs#haskellPackages.xml-to-json-fast \ | jq -r '[.items[] | select(.name=="Contents") | .items] | sort_by(.[] | select...

Snapshot under `13/` directory won't work with version 12.x. For the curl issue, a work-around is to delete the partially downloaded `db-sync-snapshot-schema-13-block-7334319-x86_64.tgz` file so that the script can retry.

s3 does support resume. But for mainnet snapshots we go through a cloudflare cache that does not. If you use s3 directly it works (but slower): ``` $ curl -vO...

The snapshot is downloaded in current working directory, so setting the working directory should allow to choose where the download is done. ie., for `docker-compose`: ``` working_dir: /var/lib/cexplorer ``` or...

this is better because partiality is expressed in the types, but still, the implementation would not work for generic classes and we want totality to be equivalent to the gof...

Sure. Here is my mastodon view of this writefreely blog, https://blogapart.org/test/: ![Image](https://github.com/user-attachments/assets/02f42489-36b9-4a1f-8517-63fc55881e5c)