question for the DBAs (among whom i cannot count myself):
what's the best strategy for refreshing summary tables in a sql server database?
the summary tables will be reloaded in toto, i.e. all rows removed (doesn't matter how) and a new set of rows inserted, using, for example, INSERT INTO or SELECT INTO with GROUP BY, etc.
the summary tables may require several columns to have indexes, but these could be populated after loading is complete
i know one strategy: drop then create the table, load it, then create the indexes
another strategy: don't drop/recreate, just truncate the table before loading
advantages? disadvantages? differences in speed? best practice?
please keep in mind i am not a DBA, and i have to be able to explain what i design to someone who is...
thanks
rudy
what's the best strategy for refreshing summary tables in a sql server database?
the summary tables will be reloaded in toto, i.e. all rows removed (doesn't matter how) and a new set of rows inserted, using, for example, INSERT INTO or SELECT INTO with GROUP BY, etc.
the summary tables may require several columns to have indexes, but these could be populated after loading is complete
i know one strategy: drop then create the table, load it, then create the indexes
another strategy: don't drop/recreate, just truncate the table before loading
advantages? disadvantages? differences in speed? best practice?
please keep in mind i am not a DBA, and i have to be able to explain what i design to someone who is...
thanks
rudy