Contents tagged with ASP
-
Output Cache With Usercontrol on Masterpage and Multiple VaryByCustom
-
Unexpected results with Compiled Queries and LINQ to SQL
SOLUTION:
Ok fired up SQL profiler and see my problem, the non compiled query seems to not evaluate the query until you actualy use the object. But the Compiled version is hitting the database straight away. And as I was not using this data the non compiled version seemed fast as it never hit the database to get the data.. So added a .ToList() on my non compiled query and am now getting the results I expected:
Non Compiled: 143ms -Compiled: 78ms
Sorry to all, any input is always appreciated... -
ParameterizedThread in .NET 1.1
Had a problem where I wanted to run a function in a thread but it expected multiple params. So I went around making the ParameterizedThread Class which helped me to execute this method.