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

Timeouts? #16

Open
donbonifacio opened this issue Jun 11, 2015 · 2 comments
Open

Timeouts? #16

donbonifacio opened this issue Jun 11, 2015 · 2 comments

Comments

@donbonifacio
Copy link
Contributor

Is there a way to specify timeouts?

@alaisi
Copy link
Owner

alaisi commented Jun 11, 2015

Short answer: Currently no.

Long answer: What timeouts are you referring to? You can of course use core.async (timeout) and (alts!) but there is currently no way to cancel a running query. Cancelation is a fairly heavy operation as it means opening a new physical connection to the postgresql server.

@donbonifacio
Copy link
Contributor Author

Doesn't postgres have something for timeouts? For example, any operation that takes longer than 1s would be canceled/timedout by postgres.

I could use core.async's timeout, but mixing that with insert/update operations is not that advised.

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

No branches or pull requests

2 participants