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

ReactiveEntityStore - cancel a long-running query #800

Open
pdjstone opened this issue Jul 12, 2018 · 1 comment
Open

ReactiveEntityStore - cancel a long-running query #800

pdjstone opened this issue Jul 12, 2018 · 1 comment
Assignees

Comments

@pdjstone
Copy link

Using Requery on Android with RxJava, is it possible to cancel a long running query? Something like this:

Disposable d = store.select(...).get().observable().subscribe(...);
...
in onPause:
d.dispose();

I have an issue where the connection pool is blocked until the long-running query is completed, even if the user leaves the activity.

@npurushe npurushe self-assigned this Aug 1, 2018
@pdjstone
Copy link
Author

For Android it looks like requery would need to use CancellationSignal for SQLite. For backends using JDBC, Statement.cancel() would have to be used. I guess the requery API would then need to expose these in a generic way. The Requery RxJava extensions would then be able to take advantage of this.

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

2 participants