Sep 30, 2009

Speeding up LINQ .Contains Queries with an Extension Method

Ive been working on some reporting forms for the company i work for.  Ive been using LINQ to filter the data, and ran in to some, well actually ALOT of slowdown when trying to filter a bunch of Int32.  The query typically looked something like ths:
var someHugeListOfIds = myData.Pages
.Select(p=>p.ParentSessionId);

var someSessions = myData.Sessions
.Where(s=>someHugeListOfIds.Contains(s.Id));

foreach(var session in someSessions)
DoSomething(someSession)

Sep 25, 2009

Questions

I often do my best thinking while driving. Life, programmming, dinner are all fair game. I answer all my questions except for one: was that light green or red?a

Must Have: Free Waze App Turns GPS Navigation Into a Social Cellphone Game

http://gizmodo.com/5367212/free-waze-app-turns-gps-navigation-into-a-social-cellphone-game

Sep 11, 2009

912 project

Can't wait for the 912 rally tomorrow!! Pray for no rain!

Error in WCF with tons of objects

Two interesting errors relating to essenially the same thing:





  1. There was an error reading from the pipe: The pipe has been ended. (109, 0x6d).




  2. The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter SomeAssembly.SomeObject:MethodNameResult. The InnerException message was ‘Maximum number of items that can be serialized or deserialized in an object graph is ‘524288’. Change the object graph or increase the MaxItemsInObjectGraph quota. ‘. Please see InnerException for more details.




The second one is the same as the first, except it relates to the ServiceBahvior, and the first is associated with EndpointBehavior. Both of these are configured server side.

Lets try this again...

is it going to work this time?

That is a good question

hmmmmmm

Question

Why did my latest post appear @ the bottom?

Photo from OUTER SPAAAAACE!

Awesome Hubble picture released yesterday.