preses ke 2 itu

query 1
     select filename
     from  FILE_A
     where tgl_proses >= to_date(tgl1||' 00:00:00', 'dd-mm-yyyy hh24:mi:ss') 
       and tgl_proses <= to_date(tgl2||' 23:59:59', 'dd-mm-yyyy hh24:mi:ss') 
       and id2_channel = cur_dir
       and id2_channel = :profiles.kode
--     order by tgl_proses asc, row_id desc ;
     order by row_id ;

query 2
begin
     insert into FILE_B (FILENAME ) 
     values (xfilename) ;
     commit ;
end ;


kalo query 1 di prosesnya pake cursor
memang sich ke 2 table diatas isinya hampir 1 jt row

lalu bagaimana proses ini supaya cepat

mohon pencerahan


oL@



  ----- Original Message ----- 
  From: Faridh Wisanggeni 
  To: [email protected] 
  Sent: Monday, April 26, 2010 10:50 PM
  Subject: Bls: [indo-oracle] proses di 6i


    
  Saya sich mendingan pake Linux.

  Windows memang gak cocok buat speed yang kita butuhkan
  Tapi ada baiknya anda check2 querynya (tuning) takutnya dari querynya sendiri 
juga lama.

  ________________________________
  Dari: Ola <[email protected]>
  Kepada: [email protected]
  Terkirim: Sen, 19 April, 2010 13:02:39
  Judul: [indo-oracle] proses di 6i

  saya memiliki 2 buah proses 

  Proses ke-1.
  proses dari teks file yang sebanyak 10 file. 1 file terdiri 1000 row data. 
semua proses tersebut dimasukkan ke dalam
  table IKLAN.
  pada proses ini tidak semua row akan dimasukan ke dalam table.

  Proses ke-2
  proses mengambil yang dari table IKLAN tersebut untuk di proses ulang. isinya 
< 2500 row (isinya hampir 1 jt row)

  catatan
  1. ke2 proses berada pada satu tombol item (ngak mungkin di break)
  2. OS windows 2003 standar, DB = 10g APP = ORacle 6i

  pertanyaannya
  1. kenapa proses akan terasa sangat lambat jika dilakukan proses 2 kali
  2. kenapa proses ke 2 amat sangat lambat ( 1 row looping proses = 5 detik), 
  padahal proses pada looping tersebut sangat serderhana
  3. bagaimanakah mempercepat proses tersebut. proses tersebut akan normal 
(cepat) jika komputer server dilakukan restart

  oL@

  [Non-text portions of this message have been removed]

  [Non-text portions of this message have been removed]



  

[Non-text portions of this message have been removed]

Kirim email ke