Post by l***@gmail.comOur Database is in SQL server and it has huge data set. we are facing
slowness issue on below operations.
1) Database query operations.
2) Database maintenance.
we need to resolve the above issues. Please tell me the best way.
If the queries are slow, the best course of action is to review indexing
and queries. Deleting old data, will of course alleviate the situation,
since there will be less to scan. But it will not address the root cause.
When it comes to database maintenance, including backups, reindexing and
statistics update, size can certainly be an issue, and if the old data
is not needed or considered "cold", there is all reason to take action.
But which is the best way depends on your requirements. That is, how do
you want to access the old data? Not at all? Must be part of the database
and seamless to users? Can you accept to have an archive database?
There are also questions about interdependence between "old" and "new"
data, that is entirely dependent on the business domain. It can be the
case that you must keep rows that would qualify as old, because they
affect data that is active.
--
Erland Sommarskog, Stockholm, ***@sommarskog.se