Skip to content

Commit

Permalink
Mention possibility of custom sqlite query
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jun 18, 2020
1 parent dc44005 commit af8d6f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/shelley/src/Cardano/Wallet/Shelley/Pools.hs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ newStakePoolLayer gp nl db = StakePoolLayer
. Map.toList
$ combineChainAndLsqData lsqData chainData
where
-- TODO: It seems it would be better to read all registraion
-- certificates at once from the DB?
-- NOTE: If performance becomes a problem, we could try replacing all
-- the individual DB queries, and combbination functions with a single
-- hand-written Sqlite query.
readChainPoolData
:: IO (Map PoolId
(PoolRegistrationCertificate, Quantity "block" Word64, Maybe StakePoolMetadata))
Expand Down

0 comments on commit af8d6f3

Please sign in to comment.