-
Notifications
You must be signed in to change notification settings - Fork 113
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
db.select(sql).dependsOnOperator().getXXX() doesn't seem to work #37
Comments
It is possible that 0.6.5 release fixes this as well. Can you test please? |
Sorry I should say please retry with 0.6.7 |
The issue seems to still be there with 0.6.7 |
Righto I've read this one properly and yep there's a problem in your example. If you call observable.lift(db.select(sql).dependsOnOperator().getTupleN()); then the select query doesn't run till |
Right, it thought it would trigger each time the interval would emit a new value which is what I want to do. Maybe what I need is updateObservable = Observable.interval(0, 10, TimeUnit.SECONDS)
.doOnNext(s -> System.out.println("try " + s))
.map(t -> Observable.empty())
.lift(db
.select("SELECT id FROM mytable ORDER BY updated_at ASC")
.parameterListOperator()
.getTupleN()
)
.doOnNext(s -> System.out.println("result " + s));
updateObservable.subscribe(); Would this work as I expect it to ? Isn't there a way I can do this without creating the empty observable ? Thanks again for your help ! |
Hi,
I have the following piece of code that doesn't seem to work as I want:
This prints out:
Although this seems to work fine:
Because it prints the following:
Am I doing something wrong in the first example ?
FYI I've simplified the above example but what I really want to do is to continuously poll that request and process its elements. It would probably look like that:
Thanks
The text was updated successfully, but these errors were encountered: