Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Danail Danailov — — source: Informix-list mailing list archive (1991-1998)
At 02:54 PM 21/04/98 -0400, Abhay Mannur wrote:
>Environment : OnLine 7.23uc4 and PeopleSoft
>
>One query is running for 18 hours and we don't want to kill the process.
>
>Query goes like this :
>
>insert into c
>select distinct col1,col2.....coln
>from a,b
>where b.col1=some value
>and a.col1= some value
>and a.col2=b.col2
>and a.col3=b.col3 ....>
>Table a has 700000 rows and b has 8000 rows.
>
>I checked no. of rows in c and there is nothing.
>Does it mean that the select is still running ?
>
>Please help.
>Thanks in advance.
>
>Abhay Mannur
>
Try:
1. CREATE INDEX idx_a ON a (col1)
CREATE INDEX idx_b ON b (col1).
2. LOCK TABLE c IN EXCLUSIVE MODE.
Best regards,
Danail Danailov
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.