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

Don't depend on the cache contents for simplifying joined trees #50

Merged
2 commits merged into from
May 29, 2016

Conversation

ghost
Copy link

@ghost ghost commented May 26, 2016

@raulraja please take a look.

This opens the door to using custom caches that don't remember all the elements, for instance caches with an LRU policy. Also if we where using a custom remote cache (like memcached) that is unreachable and thus we cannot read from it (return None from DataSourceCache#get), fetches will continue without problem querying the data source.

Previously wasn't possible to use a custom cache that forgot elements so I'd like to cut a release with these changes.

Closes #47

val ds: DataSource[Any, _] = fm.ds.asInstanceOf[DataSource[Any, _]]

ids
.map(id => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong with this but the I'd and block it's verbose. May be simplified like the next chained call

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've refactored this in another branch, will submit a PR soon.

@raulraja
Copy link
Contributor

LGTM!

@ghost ghost merged commit cb37a6f into master May 29, 2016
@ghost ghost deleted the accommodate-no-caching branch May 29, 2016 16:40
This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

1 participant