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.
10 lines
229 B
SQL
10 lines
229 B
SQL
/**
|
|
* Script for cleaning up the schema for PostgreSQL used for the AccountsDb plugin.
|
|
*/
|
|
|
|
DROP TRIGGER account_update_trigger;
|
|
DROP FUNCTION audit_account_update;
|
|
DROP TABLE account_audit;
|
|
DROP TABLE account;
|
|
DROP TABLE slot;
|