Skip to content

Persistent to Hasql #1938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/check-fourmolu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run fourmolu
uses: haskell-actions/run-fourmolu@v9
uses: haskell-actions/run-fourmolu@v11
with:
version: "0.10.1.0"
version: "0.17.0.0"
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Revision history for cardano-db-sync

## 13.7.0.0

### Summary
- Complete migration from Persistent ORM to Hasql for direct PostgreSQL access.

### Performance Improvements
- 3-4x faster epoch processing: ~30min → ~8min per epoch
- Improved cache efficiency: Stake address hit rates increased from 57-79% to 89-99%
- Reduced memory overhead: Eliminated ORM abstraction layer

### Compatibility
- PostgreSQL schema remains unchanged
- Existing database instances compatible without migration

## 13.6.0.5
- Fix offchain data so it supports files up to 3MB [#1928]
- Upgrade to PostgreSQL 17
Expand Down
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ if impl (ghc >= 9.12)
-- https://github.com/haskellari/postgresql-simple/issues/152
, postgresql-simple:base
, postgresql-simple:template-haskell

-- The two following one-liners will cut off / restore the remainder of this file (for nix-shell users):
-- when using the "cabal" wrapper script provided by nix-shell.
-- --------------------------- 8< --------------------------
Expand Down
8 changes: 1 addition & 7 deletions cardano-chain-gen/cardano-chain-gen.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ library
Cardano.Mock.ChainDB
Cardano.Mock.ChainSync.Server
Cardano.Mock.ChainSync.State
Cardano.Mock.Query
Cardano.Mock.Forging.Crypto
Cardano.Mock.Forging.Interpreter
Cardano.Mock.Forging.Tx.Alonzo
Expand All @@ -65,7 +64,6 @@ library
, cardano-binary
, cardano-crypto-class
, cardano-data
, cardano-db
, cardano-ledger-allegra
, cardano-ledger-alonzo
, cardano-ledger-babbage
Expand All @@ -82,7 +80,6 @@ library
, containers
, contra-tracer
, directory
, esqueleto
, extra
, mtl
, microlens
Expand Down Expand Up @@ -148,6 +145,7 @@ test-suite cardano-chain-gen
Test.Cardano.Db.Mock.Unit.Conway.Config.JsonbInSchema
Test.Cardano.Db.Mock.Unit.Conway.Config.MigrateConsumedPruneTxOut
Test.Cardano.Db.Mock.Unit.Conway.Config.Parse
Test.Cardano.Db.Mock.Unit.Conway.Config.Schema
Test.Cardano.Db.Mock.Unit.Conway.Governance
Test.Cardano.Db.Mock.Unit.Conway.InlineAndReference
Test.Cardano.Db.Mock.Unit.Conway.Other
Expand Down Expand Up @@ -182,7 +180,6 @@ test-suite cardano-chain-gen
, contra-tracer
, data-default-class
, directory
, esqueleto
, extra
, filepath
, int-cast
Expand All @@ -192,16 +189,13 @@ test-suite cardano-chain-gen
, tasty
, tasty-quickcheck
, text
, transformers
, transformers-except
, tree-diff
, tasty-hunit
, monad-logger
, ouroboros-consensus
, ouroboros-consensus-cardano
, ouroboros-network-api
, persistent
, persistent-postgresql
, postgresql-simple
, QuickCheck
, quickcheck-state-machine:no-vendored-treediff
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#if __GLASGOW_HASKELL__ >= 908
{-# OPTIONS_GHC -Wno-x-partial #-}
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Use zipWith" #-}
#endif

module Cardano.Mock.Forging.Tx.Conway.Scenarios (
Expand Down
274 changes: 0 additions & 274 deletions cardano-chain-gen/src/Cardano/Mock/Query.hs

This file was deleted.

Loading
Loading