Hello Moll,
I have a serious issue with one of my logs table.
The table is increasing with a pace of almost 50k records per
day.
The problem is while generating reports and the query always times out or takes forever to load.
What I have in place :
– All the indexes are in place.
– A replication DB from where the reports are generated.
– Because of this issue; I started Archiving the table and now
the primary table contains data of the last 30 days only (Now
report has only last 30 days data). That still doesnt work.
I thought of sharding but the table has a foreign key which is used while generating the reports.
Can you help me with an efficient solution such that I need not archive the past data and also the query works smoothly.
…
[Read more]