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

ItemCollectionLibrary should be able to suppress refresh #20

Open
iay opened this issue Oct 3, 2014 · 0 comments
Open

ItemCollectionLibrary should be able to suppress refresh #20

iay opened this issue Oct 3, 2014 · 0 comments
Assignees

Comments

@iay
Copy link
Owner

iay commented Oct 3, 2014

At present, a #refresh() on ItemCollectionLibrary unconditionally runs the source pipeline. This means that the library will be updated whether anything has changed or not, which in turn means that it may change more often than necessary.

There are a couple of ways to approach this. One is to discard the results of the source pipeline if it exactly matches the results of the previous run.

Another is to suppress running the source pipeline if we know (through evaluation of a configurable predicate) that the result will be the same. In the usual case, the predicate could be made up from checks on the last modified date or ETag of each of the documents which will be accessed by the source pipeline.

@iay iay added the enhancement label Oct 3, 2014
@iay iay self-assigned this Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant