Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieval of new documents in service #2174

Open
paultranvan opened this issue Nov 19, 2020 · 0 comments
Open

Retrieval of new documents in service #2174

paultranvan opened this issue Nov 19, 2020 · 0 comments

Comments

@paultranvan
Copy link
Contributor

In the qualification service, we use an index on the cozyMetadata.updatedAt attribute to query the new documents to process, and we store the last processed file date in the settings. However, as mentioned here, this might be less robust than querying the changes feed, as incoming documents from the sharing do not update their cozyMetadata.updatedAt and thus, might not be processed by the migration service.

More broadly, the need to retrieve new documents in services exist in several places, with different strategies (index with a date stored in doctype in files and photos, index with a date retrieve from the jobs in contact, changes feed in banks, ...).

This would be nice to document the different strategies and eventually provide helpers for a preferred method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant