How much time will it take to delete and truncate 43GB of data in oracle
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since
TRUNCATEis a DDL command, it will complete almost instantly– almost certainly less than a few seconds unless you have an exceptionally large number of extents. Of course, that assumes that truncating the table is a valid option–TRUNCATEcannot be rolled back, you cannot apply aWHEREclause to delete data selectively, the table cannot have any foreign key constraints, etc.How long it will take to
DELETEevery row in the table depends heavily on your system. As Alex Poole pointed out in the comments, it will depend on system load, the number of indexes, the number of triggers, the number of constraints, etc.