How Important archiving old data?
Hi All,
How important is it archiving old data ? In recent days, We saw some timeouts and blockings happening for app API calls to the database. Later, found that they are using timeout parameter in their connection strings, The database size is 5TB.This is kind of warehouse but used as OLTP mixed workload.
Again, when trying to understand why queries are taking time, we observed the tables involved in API calls queries have grown from 10GB to 70GB in past 4 months. Then the application started blaming the dba team it's the database issue as the application has no code changes from last 8-9 months. During our initial analysis, found some of the queries, doesn't have proper filters, a lot of implicit conversions, lookups and only JOINS are involved of 5-6 tables which causing row explosions. from db size, we ensured fragmentation is taken care and stats are up to date.
Questions:
- Where do you start your conversations with the app team in such situations? What specific questions to be asked?
- When we suggested app team to archive some of the old data, they're hestitant & afraid that some downstream app team's who consumes data from this database, might ask for data requests for old data so they aren't ready to archive. Side effect is, quiries are running slow due to high reads.
- In an ideal database world for an OLTP applications, how many years of data will be retained? 1 year,2 years or 3years? or is it totally dependent on application and business users? how important is it for DBA's to get this documented or getting business approval for archiving process?
- In this scenario, what are the options available for a dba to improve performance? Any advise on balancing data retention needs with perf optimization?
Regards,
Sam