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().
Loading
Please sign in to comment