Batch Data Update
Once your data is loaded, daily updates keep it current. This page covers how the daily updates run, the checks that protect it, and what you can configure.
How daily updates work
Each day, Optimove's ETL pulls or receives the previous day's data through your delivery method and loads it into your instance. The ETL is the first step of your daily updates, and it starts at your data readiness time.
Data readiness time
Your data readiness time is when all of the day's data is ready for Optimove:
- Files: when the files have landed in SFTP or cloud storage.
- Database connection: when the database Optimove reads from has been updated.
Give it in UTC, and give it to Optimove before your daily updates are set up.
Incremental and full tables
| Incremental | Full | |
|---|---|---|
| What's pulled | Only the previous day's new or changed data | The whole table, every day |
| Typical tables | Transactions and customer data, where volume changes from day to day | Mapping tables such as GameTypesAndCategories or BetDetails |
| Files | Each daily file holds only that day's delta, so file sizes vary. | Each daily file holds the full table, so it's the same size as the day before or larger. |
| Database | Rows updated since the previous day, based on LastUpdated | Every row in the table |
-- Incremental
select * from Transactions where LastUpdated >= {yesterday's_date}
-- Full
select * from GameTypesAndCategories
What you can configure
You decide how your daily updates run. On the self-service path, you set these options yourself in your Onboarding Hub. With Optimove-managed onboarding, you tell Optimove what you need and we set it up for you.
- Which tables are included in your daily updates, along with each table's primary key and source (files or database)
- Whether each table is pulled incrementally or in full
- What happens when a file is missing or a volume check fails
- Whether you'll send retroactive updates
- Retry settings
Built-in checks
When a check fails, an email goes to the recipients you choose. It describes the issue and what to do about it. For each check, you decide whether a failure should stop your daily updates or only send a notification:
| Setting | What happens on failure |
|---|---|
| Stop the daily updates | Your instance isn't updated and campaigns don't run until the issue is fixed. You're notified. |
| Don't stop the daily updates | Your instance updates and campaigns run as usual. You're notified. |
Missing files check (file delivery only)
Before transferring data, the ETL confirms that every expected file is in SFTP or cloud storage. You set one of these options for each file:
| Option | Behavior |
|---|---|
| Stop and notify | Daily updates stop until the file is uploaded. Reply to the notification email to tell Optimove support it's ready. |
| Continue and notify | Daily updates continue without the file, and you're notified. |
| Not checked | Optimove skips the check for this file, and no notification is sent. |
Data Volume Validation
At the end of the ETL, Optimove compares each selected table's daily row count with its history to confirm a reliable amount of data arrived. It checks tables that have a date column. You set the parameters during onboarding and can ask to adjust them later.
| Parameter | What it does | Default |
|---|---|---|
CompareAvg | Compares the day's row count with the average. If it's off, Optimove only checks that at least one row with yesterday's date arrived. | On |
DaysBackwards | Number of days used to calculate the average | 180 |
MultFactor | Threshold between 0 and 1. The check fails when today's rows are fewer than MultFactor × average. | 0.2 |
IsFail | Whether a failed check stops your daily updates (on) or only sends a notification (off) | On |
DaysToIgnore | Weekdays to skip, where 1 is Sunday and 7 is Saturday. For example, 1,7 skips weekends. On a skipped day, the check counts as passed and no notification is sent. Skipped days still count toward the average. | None |
IsMedian | Uses the median in place of the average. Useful when occasional very large days skew the average. | Optional |
Example. A client set up three tables:
| Table | Settings | Received on Sunday, 2024-03-03 | Result |
|---|---|---|---|
| Games (incremental) | CompareAvg on, MultFactor 0.2, average 300 rows | 50 rows | 50 is below the threshold of 300 × 0.2 = 60, so the daily updates stop and the client is notified. |
| Bonus (incremental, not every day has rows) | CompareAvg off, IsFail off | 0 rows | Daily updates continue and the client is notified. |
| Game_Types (full) | At least one row, DaysToIgnore 1,7 | 0 rows | Sunday is excluded, so the check counts as passed. Daily updates continue and no notification is sent. |
Optional readiness checks
These checks confirm your data is ready before the ETL starts. If one fails, daily updates stop and the recipients you chose get the details.
- Success file (files only): once all the day's data is ready, you upload a SUCCESS file with the current date. Optimove checks for it before starting.
- Daily log table (database only): a table you manage, where you add a row with the current date each day when the data is ready. Optimove checks for today's date before starting.
Retry mechanism
The retry mechanism re-runs the ETL every X minutes after a failure to check whether the issue has been fixed on your side. It's especially useful for missing files and data volume validation failures.
- On the first failure, you get a notification describing the issue and confirming that retries have started.
- You set the interval between retries and the maximum number of retries before the daily updates are marked as failed.
Retroactive updates
Sometimes records for past dates change after you've sent them, for example a transaction that's corrected or canceled days later. If you expect changes like these, you can turn on retroactive updates. Each daily run then also reprocesses the previous 3 days, so these changes are picked up and your data and models reflect the most up-to-date information. It works for tables that have a date field (a LastUpdated field alone isn't enough). On the self-service path, you turn this on in your Onboarding Hub. With Optimove-managed onboarding, let Optimove know you need it.
Run or resume your daily updates yourself
You can also start or resume your daily updates yourself through the API:
- Trigger Daily API: start the day's run as soon as your files are uploaded.
- Resume ETL Failed Daily API: retry or skip a failed ETL step and let the run continue.
Making changes over time
- New data: use the self-service Data Ingestion feature to upload fresh data from different sources without waiting on support.
- ETL changes: Optimove's Data Solutions team can make them for you.
- New attributes: how you create an attribute decides how you can update it later. See Attribute Creation & Updates Governance.
- Complex or custom requirements: these can be scoped with Optimove's Data Solutions team.
We recommend making one person on your team responsible for watching daily transfers and handling notifications.
Updated about 6 hours ago
