Sync MySQL mara table every 5 minutes

Recipe ToolsMarketingWorkatoDatabase

What it does

When the clock triggers every 5 minutes, this automation reads rows from the mara table in MySQL and inserts them back into the same table. Each row is added to a list and logged so someone can track what moved through the flow.

Who it's for

Data and analytics teams who need to keep MySQL tables synchronized on a regular schedule.

How teams use this

Keep mara table current automatically

Run the sync every 5 minutes without manual intervention so the mara table stays up to date. The flow handles all reads and writes in one cycle.

Audit all table changes in logs

Each row inserted is logged to the job report so someone can review what data moved through the automation. This creates a complete record of every sync.

Filter rows by a condition before insert

Add a condition to step 3 so only rows that meet specific criteria are selected and inserted into the mara table. This lets the team sync only the data that matters.

Sync multiple tables on the same schedule

Include additional MySQL tables in the same automation by duplicating the select and insert steps for each table. The 5-minute clock trigger runs all syncs together.

How it works

  1. Start on a 5-minute interval. The automation begins every 5 minutes so the mara table stays current without manual checks.
  2. Retrieve mara table schema. Fetch the column structure of the mara table in MySQL so the flow knows what data to work with.
  3. Query rows from mara table. Select all rows from the mara table in MySQL that need to be processed in this cycle.
  4. Write rows back and log results. For each row from step 3, insert it into the mara table in MySQL and log the entry to the job report so the sync is auditable.