I have list with 60000 items .With the below code ,how much time is required for code to execute ? I am aware of developer dashboard . But what should be the correct time to execute 60000 items with best practices?
using (SPSite spSite = new SPSite(SiteUrl))
{
using (SPWeb web = spSite.OpenWeb())
{
SPList listUsers = web.Lists[User_List];
//CAML query to find a user and retrieve 2fields out of 16 fields.
items = listUsers.GetItems(query);
if (items.Count > 0)
{
if (items[0][Status] != null)
{
Status = items[0][Status].ToString();
}
}