Skip to content

Commit 238a84f

Browse files
authored
Merge pull request #1938 from IntersectMBO/Persistent-to-Hasql
Persistent to Hasql
2 parents e49508c + ba164ee commit 238a84f

File tree

181 files changed

+20850
-13138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+20850
-13138
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Revision history for cardano-db-sync
22

3+
## 13.7.0.0
4+
5+
### Summary
6+
- Complete migration from Persistent ORM to Hasql for direct PostgreSQL access.
7+
8+
### Performance Improvements
9+
- 3-4x faster epoch processing: ~30min → ~8min per epoch
10+
- Improved cache efficiency: Stake address hit rates increased from 57-79% to 89-99%
11+
- Reduced memory overhead: Eliminated ORM abstraction layer
12+
13+
### Compatibility
14+
- PostgreSQL schema remains unchanged
15+
- Existing database instances compatible without migration
16+
317
## 13.6.0.5
418
- Fix offchain data so it supports files up to 3MB [#1928]
519
- Upgrade to PostgreSQL 17

cabal.project

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ package snap-server
7070
-- ---------------------------------------------------------
7171

7272
constraints:
73-
-- esqueleto >= 3.6 has API chamges
74-
, esqueleto ^>= 3.5.11.2
75-
7673
-- New version of `text` exposes a `show` function and in the `node`
7774
-- code,`Data.Text` is being imported unqualified (bad idea IMO) which
7875
-- then clashes with the `show` in `Prelude`.

cardano-chain-gen/cardano-chain-gen.cabal

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ library
4444
Cardano.Mock.ChainDB
4545
Cardano.Mock.ChainSync.Server
4646
Cardano.Mock.ChainSync.State
47-
Cardano.Mock.Query
4847
Cardano.Mock.Forging.Crypto
4948
Cardano.Mock.Forging.Interpreter
5049
Cardano.Mock.Forging.Tx.Alonzo
@@ -65,7 +64,6 @@ library
6564
, cardano-binary
6665
, cardano-crypto-class
6766
, cardano-data
68-
, cardano-db
6967
, cardano-ledger-allegra
7068
, cardano-ledger-alonzo
7169
, cardano-ledger-babbage
@@ -82,7 +80,6 @@ library
8280
, containers
8381
, contra-tracer
8482
, directory
85-
, esqueleto
8683
, extra
8784
, mtl
8885
, microlens
@@ -148,6 +145,7 @@ test-suite cardano-chain-gen
148145
Test.Cardano.Db.Mock.Unit.Conway.Config.JsonbInSchema
149146
Test.Cardano.Db.Mock.Unit.Conway.Config.MigrateConsumedPruneTxOut
150147
Test.Cardano.Db.Mock.Unit.Conway.Config.Parse
148+
Test.Cardano.Db.Mock.Unit.Conway.Config.Schema
151149
Test.Cardano.Db.Mock.Unit.Conway.Governance
152150
Test.Cardano.Db.Mock.Unit.Conway.InlineAndReference
153151
Test.Cardano.Db.Mock.Unit.Conway.Other
@@ -182,7 +180,6 @@ test-suite cardano-chain-gen
182180
, contra-tracer
183181
, data-default-class
184182
, directory
185-
, esqueleto
186183
, extra
187184
, filepath
188185
, int-cast
@@ -192,16 +189,11 @@ test-suite cardano-chain-gen
192189
, tasty
193190
, tasty-quickcheck
194191
, text
195-
, transformers
196192
, transformers-except
197193
, tree-diff
198194
, tasty-hunit
199-
, monad-logger
200195
, ouroboros-consensus
201196
, ouroboros-consensus-cardano
202197
, ouroboros-network-api
203-
, persistent
204-
, persistent-postgresql
205-
, postgresql-simple
206198
, QuickCheck
207199
, quickcheck-state-machine:no-vendored-treediff

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Conway/Scenarios.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#if __GLASGOW_HASKELL__ >= 908
77
{-# OPTIONS_GHC -Wno-x-partial #-}
8+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
9+
{-# HLINT ignore "Use zipWith" #-}
810
#endif
911

1012
module Cardano.Mock.Forging.Tx.Conway.Scenarios (

cardano-chain-gen/src/Cardano/Mock/Query.hs

Lines changed: 0 additions & 274 deletions
This file was deleted.

0 commit comments

Comments
 (0)