Accountsdb stream plugin improvement (#20419) (#20573)

* Accountsdb stream plugin improvement (#20419)

Support using connection pooling and use multiple threads to do Postgres db operations. The performance is improved from 1500 RPS to 40,000 RPS measured during validator start.

Support multiple plugins at the same time.

* Fixed a fmt issue
This commit is contained in:
Lijun Wang
2021-10-10 15:24:12 -07:00
committed by GitHub
parent e5dc8d731b
commit 50cb612ae1
11 changed files with 563 additions and 143 deletions

View File

@@ -0,0 +1,5 @@
This is an example implementing the AccountsDb plugin for PostgreSQL database.
Please see the `src/accountsdb_plugin_postgres.rs` for the format of the plugin's configuration file.
To create the schema objects for the database, please use `scripts/create_schema.sql`.
`scripts/drop_schema.sql` can be used to tear down the schema objects.