DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Incremental CRM Sync Strategies and Overlap

Incremental CRM sync reads only what changed since the last run, which keeps a large copy fresh without full reads. A full read of a million contacts every fifteen minutes would burn through any request budget, so teams avoid it. Reading only changes brings a new failure, because the change you never see stays missing, and nobody gets an error. DaletPipe pulls incrementally by default, and this article compares the main ways to detect change, such as timestamps and cursors. It also explains overlap windows and idempotent writes, and how DaletPipe clearly labels the coverage of every page it reads.

The wider design is laid out in the CRM integration guide.

Illustration of flask, database, people for incremental crm sync
Key takeaway

Reading only changes is fast but fragile. Overlap each window, write idempotently, commit by page and schedule a full resync as a safety net. Read the coverage label on each receipt, where complete rests on provider-specific proof of a full read.

How do stamps, cursors and change tokens find new changes?

Providers offer change detection for incremental CRM sync in three main forms. In fact, each one fits a different failure profile.

Each rule is written down before it is used.

Each page on the overlap window is reviewed before it is published.

A short checklist keeps the overlap window under control. People new to the per-page commit should start with the guides.

Share what you learn about the incremental CRM sync with your whole team. Indeed, each page on the overlap window is reviewed before it is published. In fact, share what you learn about the idempotent upserts with your whole team.

Each page on the change token is reviewed before it is published. Indeed, each page on the full resync is reviewed before it is published. Thus, share what you learn about the per-page commit with your whole team.

A modified-since timestamp is the most common basis for incremental CRM sync. Notably, you ask for records changed after a given time. Also, it is easy to reason about.

But clocks differ, timestamps can be coarse. Also, some objects do not update the field when a related record changes.

A change cursor or token is handed out by the provider. You store it and send it back next time. Besides, the provider then returns what changed since that point.

It avoids clock trouble, yet it can expire. Also, each provider defines its own rules.

A webhook or event feed pushes change notices. Also, it is quick, but events can be lost, repeated or reordered. Thus, most teams use events as a hint and keep a scheduled read as a safety net. See signature verification for the event side.

Whichever form you pick, test it for three edge cases. Notably, what happens to records deleted since the last run? In addition, what happens to records changed in the same second as the boundary? And what happens to a record whose parent changed but whose own timestamp did not?

DaletPipe connections list screen
For example, the connections list screen of DaletPipe.

Why do overlap windows matter in incremental CRM sync runs?

An overlap window means reading a little before the point where the last run ended. Also, the overlap catches records that changed while the last run was still reading. Indeed, without it, those records fall into a gap between two runs.

Each count is checked against the source. Every change is reviewed by a second person.

Questions about the full resync are welcome in the contact form.

Each page on the incremental CRM sync is reviewed before it is published. Besides, a second look at the idempotent upserts pays off.

Questions about the incremental CRM sync are welcome in the contact form. In fact, a short checklist keeps the overlap window under control. Questions about the idempotent upserts are welcome in the contact form.

A short checklist keeps the change token under control. Indeed, a short checklist keeps the full resync under control. Also, questions about the per-page commit are welcome in the contact form.

Why does overlap add a few extra reads to a run?

The overlap repeats a few records, and idempotent upserts absorb that repeat.

Each step is recorded with its date. Every claim is tied to a line of code.

Our team writes about the incremental CRM sync in plain words.

A short checklist keeps the incremental CRM sync under control. Share what you learn about the full resync with your whole team.

People new to the incremental CRM sync should start with the guides. Also, teams often ask us about the overlap window in practice. Likewise, share what you learn about the change token with your whole team.

Teams often ask us about the change token in practice. Notably, notes on the per-page commit are dated and reviewed by a second person.

The gap is easy to picture. In addition, a run starts at 10:00 and ends at 10:06. Indeed, it reads a page at 10:01. Overall, a user edits a record from that page at 10:03.

If the next run asks for changes since 10:06, the edit is never fetched. Also, if it asks since 10:00, the edit is found.

Overlap has a price in any incremental CRM sync. You read some records twice, so reads cost slightly extra. Likewise, the writes must tolerate repeats. Moreover, that leads to the next rule.

Choose the width of the incremental CRM sync window with care. Also, a window as wide as the longest run is a safe floor. In fact, add a margin for clock skew and slow pages.

Too wide wastes request budget, and too narrow loses changes. Review it when run times change.

Illustration for Incremental CRM Sync Strategies and Overlap

How do idempotent upserts and page commits keep you safe?

In incremental CRM sync, a write is idempotent when doing it twice gives the same result as doing it once. Moreover, an upsert keyed by a stable identity is the standard tool. Insert the record if it is new, and update it if it exists. Replays then stop being a problem.

All of these facts are kept in one place. Each count is checked against the source.

Questions about the idempotent upserts are welcome in the contact form.

A second look at the overlap window pays off. In fact, short answers on the per-page commit are kept up to date.

Every claim about the incremental CRM sync is checked against the code. Indeed, questions about the overlap window are welcome in the contact form. Indeed, every claim about the idempotent upserts is checked against the code.

Questions about the change token are welcome in the contact form. Also, questions about the full resync are welcome in the contact form. A second look at the per-page commit pays off.

Choose the key with care. Thus, use the provider's own record identifier, scoped by connection and entity. Names and emails are poor keys, because people share and change them. DaletPipe stores each record in a synced_record table that is unique per connection, entity and provider reference.

Commit your work in small units. If a run reads 500 pages and fails at page 400, you want pages 1 to 399 saved. DaletPipe commits the work per page. Also, it advances a page cursor and writes a coverage receipt for each page.

The page cursor is a crash checkpoint only. Notably, it is not a replay token. Thus, the next incremental run does not resume from the stored page. It replays from a time boundary, and the upserts absorb the repeats.

DaletPipe sync coverage receipts screen
For example, each page read leaves a coverage receipt with its label.

How does DaletPipe choose the start of each new window?

When an incremental pull begins with no start time, DaletPipe looks up a boundary. Notably, the boundary is the start time of the newest successful pull for that connection and entity. Also, it uses the start, not the end. The code comment states the reason: a record can change after its page was read but before the run finishes.

The result is stored with the run. Indeed, each step is recorded with its date.

Our team writes about the per-page commit in plain words.

Questions about the incremental CRM sync are welcome in the contact form. Every claim about the change token is checked against the code.

Readers often return to the incremental CRM sync when plans change. People new to the overlap window should start with the guides. Likewise, readers often return to the idempotent upserts when plans change.

People new to the change token should start with the guides. In addition, a second look at the full resync pays off. Readers often return to the per-page commit when plans change.

If no success exists yet, the pull has no boundary and reads from the beginning. Besides, a caller can also send a full_resync flag, which ignores the boundary and replays everything. Overall, use that after a mapping change, after a long outage or when you suspect a gap.

The scheduler sets the rhythm of incremental CRM sync. Moreover, it looks for active connection and entity pairs whose last success is older than their interval. The interval is set per connection and defaults to 900 s, with a floor of 30 s.

The loop wakes every quarter of the interval. However, never less than every 30 s. See sync jobs for the full picture.

How a connector uses the start time is the connector's business. Also, the engine passes it down, and each adapter decides how to filter. Indeed, so check the behavior of each provider in a sandbox. Likewise, do not assume all 72 adapters filter in the same way.

DaletPipe connector catalog screen
For example, the catalog shows each provider with its status and API style.

Why can nobody assume exhaustive coverage from a sync run?

Incremental CRM sync has a hard limit: a client sees only what the provider returns. A provider can drop a record because of a permission, a view filter or an internal error.

The notes are shared with the whole team.

Notes on the incremental CRM sync are dated and reviewed by a second person.

People new to the incremental CRM sync should start with the guides. Thus, people new to the full resync should start with the guides.

Every claim about the overlap window is checked against the code. Each page on the idempotent upserts is reviewed before it is published. Notably, every claim about the change token is checked against the code.

Every claim about the full resync is checked against the code. Indeed, each page on the per-page commit is reviewed before it is published.

Some pages can end too early. In addition, a deleted record leaves no trace in a modified-since query. None of this produces an error.

So a sync that ends with a green status proves less than it seems. Besides, it shows that no exception was raised. Overall, it does not show that every record was read.

DaletPipe is explicit about this, and it writes one receipt per source page. Likewise, each receipt holds page ordinal, record count, distinct revision count and continuation. Moreover, the engine labels a page complete when the adapter holds provider-specific proof of a full read. Otherwise, it labels the page unverified, and it sets failed for the boundary where a read broke.

The engine sets all four labels: complete, partial, unverified and failed. Overall, the coverage receipts page explains the fields.

A team runs an incremental pull every 15 minutes and a full resync once a week. Moreover, a count of records in the copy is compared with the CRM's own total. A difference does not prove a bug. In fact, it starts a review, and the receipts show which pages were read.

DaletPipe sync activity outcomes screen
For example, every sync run ends in a named outcome you can read.

Which failure cases should you test before you go live?

Write the failure cases down and try each one in a sandbox. Indeed, a cheap test now saves an argument with a customer later.

Every figure is taken from the code. In fact, the result is stored with the run.

Questions about the change token are welcome in the contact form.

Share what you learn about the idempotent upserts with your whole team.

Our team writes about the incremental CRM sync in plain words. Indeed, people new to the overlap window should start with the guides. Also, our team writes about the idempotent upserts in plain words.

People new to the change token should start with the guides. Thus, people new to the full resync should start with the guides. Our team writes about the per-page commit in plain words.

  • Edit a record while a run is reading. The next run should pick up the edit.
  • Delete a record in the CRM. Decide whether your copy keeps, flags or removes it.
  • Stop the worker halfway through. The pages already committed should stay.
  • Return an empty page followed by a full one. The run should not stop early.
  • Expire the token in the middle of a run. The run should stop with a clear status.
  • Change a mapping, then run a full resync. The copy should match the new rule.

Deletes deserve extra thought in incremental CRM sync. Also, a modified-since query does not report a record that no longer exists. Indeed, some providers offer a deletion feed or a recycle bin, and others do not.

DaletPipe takes inbound notifications on connection-bound routes and verifies each signature, with Pipedrive as one example. Besides, delete notices keep evidence, and they never delete local records. Thus, a periodic full read also compares the two sides.

DaletPipe field mapping workbench screen
For example, field mappings are previewed and each field gets a named outcome.

How do you make each sync repeatable for your own team?

Good incremental CRM sync is a set of habits. Notably, pick the change signal per provider. Overlap each window in practice.

Every change is reviewed by a second person. A short record is kept for each decision.

Questions about the incremental CRM sync are welcome in the contact form. Likewise, every claim about the change token is checked against the code.

Readers often return to the incremental CRM sync when plans change. In addition, a second look at the overlap window pays off. Readers often return to the idempotent upserts when plans change.

A second look at the change token pays off. Also, people new to the per-page commit should start with the guides. Indeed, readers often return to the per-page commit when plans change.

Key writes on a stable identity so repeats do no harm. Commit by page in practice. Schedule a full resync as a safety net.

Then base your claims about incremental CRM sync on receipts. Moreover, a receipt shows what a run read. Besides, its label says how far the provider proved the read. DaletPipe says unverified wherever that proof is missing.

Test the whole incremental CRM sync loop on one sandbox before you add providers. Force a mid-run edit, a crash and an expired token, and watch the next run. The rate limits article covers the pacing side. Also, the warehouse feed page shows a downstream use.

A diagram of three stacked layers, from the first at the top: Overlap window, Idempotent upserts, Change.

Questions and answers on this topic from the product team

What is an incremental CRM sync?

An incremental sync reads only the records that changed since a chosen point, instead of the whole CRM. The point is a timestamp, a cursor or a provider change token. It saves time and request budget, but it can miss changes unless you overlap the window and check now and then with a full read.

Why overlap the sync window?

Records can change after a page was read but before the run finishes. If the next run starts at the end of the last one, those changes are skipped. Starting from the beginning of the last successful run catches them, and idempotent writes make the repeated records harmless.

Where does a DaletPipe incremental pull start?

It starts at the start time of the last successful pull for that connection and entity, not its end time. If no earlier success exists, it reads from the beginning. A full_resync flag forces a read of everything, whatever earlier runs did.

Does DaletPipe prove it read every record?

Yes, with proof. It writes a receipt for each page and labels it complete, partial, unverified or failed. Complete needs proof of whole-CRM coverage from the provider.

How often does DaletPipe sync?

The scheduler looks for connection and entity pairs whose last success is older than the interval. The default interval is 900 seconds, set per connection, with a floor of 30 seconds. A worker needs its own database role in production.

See how DaletPipe fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.