-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share PGSQL connection pool between ledgers.
To do this, we introduce a storage.Driver interface between the storage.Factory and the Store implementations. This interface is in charge of initializing the connection to the underlying database (in case of PGSQL, create the pool) and create the underlying stores for ledgers.
- Loading branch information
Showing
3 changed files
with
93 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1db8bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leger Bench for SQLite
BenchmarkTransaction_20_1k
989508114
ns/op771735100
ns/op1.28
BenchmarkGetAccount
18552806
ns/op17587361
ns/op1.05
BenchmarkFindTransactions
620298
ns/op494158
ns/op1.26
This comment was automatically generated by workflow using github-action-benchmark.
1db8bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leger Bench for PostgreSQL
BenchmarkTransaction_20_1k
7546015044
ns/op11028919519
ns/op0.68
BenchmarkGetAccount
7120867
ns/op10026448
ns/op0.71
BenchmarkFindTransactions
2541482
ns/op694444
ns/op3.66
This comment was automatically generated by workflow using github-action-benchmark.
1db8bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Leger Bench for PostgreSQL'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BenchmarkFindTransactions
2541482
ns/op694444
ns/op3.66
This comment was automatically generated by workflow using github-action-benchmark.