If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Viewing FIRST_ROWS of result set before query completes.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-05-10, 09:35
informixdev informixdev is offline
Registered User
 
Join Date: Oct 2009
Posts: 15
Viewing FIRST_ROWS of result set before query completes.

I have a table with 500K rows, then I ad-hoc query with no supported indexing which will require a full table scan. I would like to immediately display the FIRST_ROWS of the result set in one thread while the full table scan continues in another thread. I want to periodically display the query's progress (every 100 rows) example: "SEARCHING 500,000 rows, AT ROW n00, FOUND n, Continue (Y/N)?" while giving the user the option to cancel. This would be a nice time-saving feature, especially since users sometimes don't realize the scope of their queries and would also help avoid runaway-queries (like cartesian products). If I migrate from SE to IDS, I will loose the ability to write low-level functions with c-isam calls, but gain FIRST_ROWS along with other goodies like: SET-READS for index scans (onconfig USE_[KO]BATCHEDREAD), optimizer directives, parallel queries, etc. So if these features are doable, whats the best way to implement them?

Last edited by informixdev; 04-05-10 at 09:40. Reason: added stuff
Reply With Quote
Reply

Tags
discussion, informix, oracle, rdbms, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On