Make an Incremental Synchronize Action

This section shows how the connector introduced in A Complete Synchronize Action can be updated to make the synchronize action incremental, by using the datastore functionality described in The Datastore.

An incremental synchronize is more efficient than running a full synchronize every time you need to synchronize with the information in the repository. The first time you run the synchronize action, the connector ingests all of the files it finds. On subsequent cycles, only new or modified items are ingested, and ingest-deletes are sent to the ingestion target for deleted files.

This section describes one approach that you can use to implement incremental synchronize. This approach is implemented in sample code that is provided in the SDK (IncrementalSynchronize.java).