From: Elliotte Harold <elharo@me...> - 2003-11-21 23:40:55
I'd like to give users in my app an option to cancel a long-running query.
1. What, if anything is likely to go wrong with QueryProcessor if I
forcibly stop a thread in the middle of processing by invoking
thread.stop()? Would it be necessary to set up a new query processor for
2. Is there any way to find out how far along the query has gotten? I
tend to doubt it. This is probably equialenet to the halting problem and
may also require knowing how big the source documents are; but just in
case I missed something I thought I'd ask.
Elliotte Rusty Harold
From: Paul R Brown <prb@fi...> - 2003-11-22 19:06:02
> 1. What, if anything is likely to go wrong with QueryProcessor if I
> forcibly stop a thread in the middle of processing by invoking
> thread.stop()? Would it be necessary to set up a new query processor
> for future queries?
That doesn't really work:
Unless you want to adapt the query execution to check for a flag every
so often (same as for progress monitor), you're pretty much out of