Re: File full error in simple select statement
Posted by: Peter Brawley
Date: April 21, 2021 08:39PM

800 x 350k 10-byte decimal amount & date values take up about 4G, if code is an int then your temp file is big enough, something else is wrong.

Is the tmpdir file system too small, did you try other tmpdir settings?

Of course the join is problematic, difficult to index---what does Explain say, what does performance_schema ( say?

Does this version of the query also throw the temp file error?

select weekend, code, sum(amount) as owing
from (
  select w.weekend, d2.code as family, d2.amount
  from weekendings w  
  join dr02        d2 on (w.weekend >= and d2.t1 <> "g") 
                      or (w.weekend >= d2.weekend and d2.t1 = "g")
  where d2.code = "smi1" and d2.amount is not null
) x
group by weekend, code
order by weekend, code;

Options: ReplyQuote

Written By
Re: File full error in simple select statement
April 21, 2021 08:39PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.