I am trying to retrieve all the columns from External list from sharepoint 2010. Em using the below code
SPListItemCollection collection = list.GetItems(query);
foreach (SPField field in collection[0].Fields)
{
}
Here collection[0].Fields takes so much time. How can I avoid this perofrmance problem? Is there way of faster retrieval of items?