I have a simple question:
Scenario:
Whose Perfomance is better ?
1)
DROP INDEX -->
TRUNCATE TABLE -->
AND THEN FILLUP DATA -->
AND THEN CREATE INDEX
2)
DROP TABLE -->
CREATE TABLE -->
FILLUP DATA-->
CREATE INDEX
I am using a table with millinos of recods. Which of these queries would suit my needs best?
Between the two methods, populating the data and then creating the index will be 99% of the time it takes to do the operation, I wouldn’t worry that much if truncate or drop is faster after all both are not fully logged operations