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. |
||
---|---|---|
.. | ||
scripts | ||
src | ||
Cargo.toml | ||
README.md |
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.