Sieving through a large list of objects
<p>I am trying to retrieve a list of names from a large IEnumerable with 142000 objects.  For 
some reason..  the operation is timing out and leaving an incomplete list of names.  Is 
there a better and faster way to do what I am doing in the code below: </p>

<pre><code>IEnumerable&lt;MyClass&gt; table = GetAll(); // Get All returns an IEnumerable&lt;MyClass&gt;

IEnumerable&lt;string&gt; allNames = new List&lt;string&gt;();
allNames = table.Where(r =&gt; listOfIds.Contains(r.id)).Select(r =&gt; r.name);
</code></pre>

<p>Any help appreciated,</p>

<p>Ted</p>
