Begin Viewing Query Results Before Query Ends

Posted by Frank Developer on Stack Overflow See other posts from Stack Overflow or by Frank Developer
Published on 2010-04-01T20:14:44Z Indexed on 2010/04/01 20:23 UTC
Read the original article Hit count: 209

Filed under:
|
|

OK, so say I have a table with 500K rows, then I ad-hoc query with unsupported indexing which requires a full table scan. I would like to immediately view the first rows returned while the full table scan continues. Then I want to scroll thru the next results. In the meantime, I would like to display the progress of the table scan, example: "SEARCHING.. FOUND 23 OF 500,000 ROWS SO FAR". If I scroll too far ahead, I want to display a message like: "REACHED LAST ROW IN LOOK-AHEAD BUFFER.. QUERY HAS NOT COMPLETED".. Can this be done? Maybe like: spawn/exec, declare scroll cursor, open, fetch, etc.?

© Stack Overflow or respective owner

Related posts about informix

Related posts about Oracle