Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data caching techniques / Tips / AppFabric

We have million and millions of records in a SQL table, and we run really complex analytics on that data to generate reports.

As the table is growing and additional records are being added, the computation time is increasing and the user has to wait a long time before the webpage loads.

We were thinking of using a distributed cache like AppFabric to load the data in memory when the application loads and then running our reports off that data in memory. This should improve the response time a little since now data is in memory vs disk.

Before we take the plundge and implement this I wanted to check and find out what others are doing and what are some of the best techniques and practices to load data in memory, caching etc. Surely you don't just load the entire table with 100s of millions of records in memory...??

I was also looking into OLAP / Data warehousing, which might give us better performance rather than caching.

like image 818
ace Avatar asked Dec 14 '25 16:12

ace


1 Answers

The solution to complex reporting is to pre-calculate, so you're on the right path if you're looking at OLAP.

like image 140
Alex Avatar answered Dec 16 '25 06:12

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!