SQLite3 Connection per redemption attempt
Connections could probably be in a per-thread cache or something but redemption costs are going to dwarf database opening costs. Also, filesystem caches and no benchmarks and all that.
Showing
- src/PaymentServer/Main.hs 2 additions, 2 deletionssrc/PaymentServer/Main.hs
- src/PaymentServer/Persistence.hs 29 additions, 19 deletionssrc/PaymentServer/Persistence.hs
- src/PaymentServer/Processors/Stripe.hs 1 addition, 2 deletionssrc/PaymentServer/Processors/Stripe.hs
- src/PaymentServer/Ristretto.hs 0 additions, 2 deletionssrc/PaymentServer/Ristretto.hs
- test/Persistence.hs 2 additions, 2 deletionstest/Persistence.hs
Loading
Please register or sign in to comment