Output Caching With VaryBy Complex Object

OutputCache is great for caching Actions with simple parameters, but when you are passing in a complex object it becomes a bit trickier to deal with.…

Find Largest Tables In A Database

Stumbled on this really useful script recently which finds the largest tables in a database. I used this on a huge application to work out why the database backup was getting bigger and bigger.…

Split Large C# List Into Smaller Lists

I had the need recently to split up a List of objects (2.5 million rows) into smaller lists so I could batch insert into a database. I stumbled on this method, and it's lightning fast for splitting large lists into smaller chunks of whatever size you want.…