Class | RR::Committers::BufferedCommitter |
In: |
lib/rubyrep/committers/buffered_committer.rb
|
Parent: | DefaultCommitter |
This committer periodically commits transactions. It can be used for pre-replication syncs as it
DEFAULT_COMMIT_FREQUENCY | = | 1000 | Unless overwritten via configuration, transactions are commited after the given number of record changes |
Begins new transactions in both databases. After starting the transaction, marks the activity of rubyrep.
Commits the open tranactions and starts new one if the commit_frequency number of record changes have been executed.
Commits the open transactions in both databases. Before committing, clears the rubyrep activity marker.
Returns the number of changes, after which the open transactions should be committed and new transactions be started.
Deletes the specified record in the specified database.
Switches the trigger mode of the specified table in the specified database to ignore rubyrep activity.
Is called after the last insert / update / delete query.
Inserts the specified record in the specified database.
Returns true if a new transaction was started since the last insert / update / delete.
Updates the specified record in the specified database.