Use PREPARE/EXECUTE statements for applying DML in follow mode.
When replaying INSERT/UPDATE/DELETE statements, switch to using PREPARE and EXECUTE at the protocol level (using the libpq functions PQprepare and PQexecPrepared). When a statement has already been prepared previously in our session, we then only send the EXECUTE statement. This shoud provide nice performance improvements.
parent
2ebb9f9c
Please register or sign in to comment