Closed fridex closed 2 years ago
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fridex, mayaCostantini
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This introduces a breaking change
Description
With this change, we will be able to instrument the document sync job to sync only documents that are no older than X days. This is an optimization for the cronjob. Ex. we can have the cronjob running
@daily
and reduce CPU time occupied to tell it to sync documents that were created past 7 days (as an example). This will reduce the need for iterating over all the documents each time the cronjob runs; eventual cronjob misses will be handled properly by the overlaping dates (@daily
vs. past X days sync).