c# - WorkItemCollection items too slow to access -


using tfs sdk, querying workitems using workitemstore.query:

workitemcollection workitems = workitemstore.query("select id workitems");  foreach(workitem wi in workitems) {     string id = wi.id;     foreach(attachment attachment in wi.attachments)     {         console.write(attachment.uri.originalstring); //slow     } } 

accessing items collection slow. talking tfs server everytime access workitem member? there way construct query in such way fields need in 1 go?

problem is, tfs server located off-shore, , that's why it's slow. querying stuff en-masse makes lot faster.

edit: can't query attachments field. "attachments" not valid field.

your query not fetch attachments. each wi.attachments call make query data.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -