Giter Site home page Giter Site logo

Canceling a (long-running) query about implyr HOT 3 OPEN

ianmcook avatar ianmcook commented on May 26, 2024
Canceling a (long-running) query

from implyr.

Comments (3)

ianmcook avatar ianmcook commented on May 26, 2024

Thanks for asking about this. Cancelling queries is a tricky problem because of how the stack of packages that support implyr works. The odbc package, for example, runs C++ code that can't or doesn't check for interrupts from R.

There are possible workarounds for this, for example, we could implement an alternative version of the collect() function that would work asynchronously and would check often for interrupts or cancel commands.

Do these long waits typically happen after you've executed a collect() command? Or in some other situation?

from implyr.

henningsway avatar henningsway commented on May 26, 2024

It depends. It does often happen after I sent a collect(), but also , when I work with a remote tbl, want to see the output of some sql-transformations and underestimated the time the computation of the preview takes. ;-)

I would guess that both cases happen about equally often. (Though for the second one, I could also try to develop on much smaller subset more often.)

from implyr.

henningsway avatar henningsway commented on May 26, 2024

I think something similar has been implemented for sparklyr recently: https://blog.rstudio.com/2018/10/01/sparklyr-0-9/

from implyr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.