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

Implement threaded fetch queue to simplify concurrent result processing #12

Open
wesm opened this issue May 19, 2016 · 0 comments
Open

Comments

@wesm
Copy link
Contributor

wesm commented May 19, 2016

Operation::Fetch is a blocking operation and involves both IO and deserialization. There may be non-trivial computation involved with a retrieved row set, so we should enable the fetching and processing to be carried out concurrently in a simple producer-consumer fashion. I don't think this needs to be complicated -- a "spooler" class with a fixed-depth queue (generally length = 1) and a mutex should suffice, with the ability to communicate EOS or error

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

1 participant