solana-with-rpc-optimizations/accountsdb-plugin-postgres
Lijun Wang f14365f4b4
Accountsdb plugin postgres -- bulk insertion at startup (#20763)
Use bulk insertion to Postgres at startup to reduce time taken for initial snapshot restore for postgres plugin. Avoid duplicate writes of accounts at startup. Doing account plugin notification and indexing in parallel.

Improved error handling for postgres plugin to show the real db issues for debug purpose
Added more metrics for postgres plugin.
Refactored plugin centric code out to a sub module from accounts_db and added unit tests
2021-10-24 12:43:33 -07:00
..
scripts Accountsdb stream plugin improvement (#20419) 2021-10-08 20:06:58 -07:00
src Accountsdb plugin postgres -- bulk insertion at startup (#20763) 2021-10-24 12:43:33 -07:00
Cargo.toml Accountsdb plugin postgres -- bulk insertion at startup (#20763) 2021-10-24 12:43:33 -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.