Commit a2e43f3a authored by Dan Notestein's avatar Dan Notestein
Browse files

Re-enable UNLOGGED tables during massive sync for faster inserts

This re-enables a feature originally implemented by Bartek Wrona in Sept 2020
that was disabled in June 2024. During massive sync, the following tables are
set to UNLOGGED to avoid WAL writes:

- hive_accounts
- hive_permlink_data
- hive_post_tags
- hive_posts
- hive_post_data
- hive_votes

Tables are converted back to LOGGED before entering live sync mode.

Trade-off: Significantly faster inserts during massive sync, but data would
be lost on crash (requiring resync from scratch). This is acceptable for
initial sync scenarios.

Also fixed: Added SCHEMA_NAME prefix to table names in set_logged_table_attribute().
parent 7a75045a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment