solana/accountsdb-plugin-postgres
Lijun Wang d621994fee
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.
2021-10-08 20:06:58 -07:00
..
scripts Accountsdb stream plugin improvement (#20419) 2021-10-08 20:06:58 -07:00
src Accountsdb stream plugin improvement (#20419) 2021-10-08 20:06:58 -07:00
Cargo.toml Accountsdb stream plugin improvement (#20419) 2021-10-08 20:06:58 -07:00
README.md Accountsdb stream plugin improvement (#20419) 2021-10-08 20:06:58 -07:00

README.md

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.