felixge/node-mysql — Issue #137: Ability to stop/cancel a query
Author: dresende
Created: 2011-11-17 18:58:52+00:00
State: open

I'm not sure what I'm trying to achieve is possible, it can also depend on mysql protocol. Imagine I'm looking for something on a table, but I'm not sure where it is (because I have to analyse the records), so I make a query (possibly with some conditions and an order, but still.. too many records) and I start listening on the row event. Is it possible to, if I find what I'm looking for, stop or destroy the query and ignore future results (and possibly tell mysql server to stop streaming more stuff..) ?