Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Request: ability to run select queries on a separate thread #236

Closed
isurukej opened this issue Sep 28, 2015 · 5 comments
Closed

Request: ability to run select queries on a separate thread #236

isurukej opened this issue Sep 28, 2015 · 5 comments

Comments

@isurukej
Copy link

'Insert and 'Select' quarries run separate thread in swift - 2 at the same time. Because in swift 2 version "Threads that open transactions and savepoints will block other threads from executing statements while the transaction is open."

@stephencelis
Copy link
Owner

@isurukej Everything should be running in the same queue as long as it's the same connection. Do you have code that reproduces the issue?

@isurukej
Copy link
Author

isurukej commented Oct 2, 2015

Thanks your reply, But I mean that when 'insert' more 2000 records in 'transactions' block and run 'select' quarry in that time. So 'select' quarry run after finished finished 'insert' quarries. I think because "Threads that open transactions and savepoints will block other threads from executing statements while the transaction is open." in Swift 2. So I run 'insert' quarries in separate Connection. is that OK?

@stephencelis
Copy link
Owner

@isurukej Ah, so it doesn't sound like this is a bug then. You were asking for a feature request to run SELECT statements in a different thread? Let me think about the repercussions of that.

@isurukej
Copy link
Author

isurukej commented Oct 5, 2015

Thanks.

@mikemee mikemee changed the title 'Insert and 'Select' quarries run separate thread in swift - 2 Request: ability to run select queries on a separate thread Jan 6, 2016
@mikemee
Copy link
Collaborator

mikemee commented Jan 11, 2016

Added to Feature Requests.

@mikemee mikemee closed this as completed Jan 11, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants