- max(id) lebih lambat karena dbms mesti nyari nilai maksimum - kalo dah mikirin concurrency, max(id) bakal lebih lambat lagi, karena simultaneous requests mesti serialized. - kalo nomornya mesti berurut, ga bisa pake sequence karena sequence ga menjamin ga bakal ada nomor yg loncat. Yg dijamin sequence adalah nomornya bakal unique. - rule of thumb: pake sequence sebisa mungkin
hth panji 2010/5/26 Boby Siswanto <[email protected]> > > > salam, > saya akan membuat auto increment pada primary key pada saat DML, ada 2 cara > yang terfikirkan yaitu menggunakan sequence dan max(id)+1 > mohon penjelasannya keuntungan dari kedua cara tersebut > > terimakasih, > Boby > > > [Non-text portions of this message have been removed] ------------------------------------ -- -----------I.N.D.O - O.R.A.C.L.E--------------- Keluar: [email protected] Website: http://indooracle.wordpress.com http://www.facebook.com/group.php?gid=51973053515 ----------------------------------------------- Bergabung dengan Indonesia Thin Client User Groups, Terminal Server, Citrix, New Moon Caneveral, di: http://indo-thin.blogspot.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/indo-oracle/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/indo-oracle/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

