-
230
-
1476
-
6/6/2013
-
Norway
Hello.
The following query times out.
public IEnumerable<int> GetOrderNumberForOrdersNotProcessed(string key, object value)
{
return (from a in _genericAttributeRepository.Table
where a.Key == key &&
a.Value == value.ToString()
select a.EntityId).ToList();
}
Any idea why?
I need it so i can see if a order has been processed by an external source.
-
11325
-
100987
-
5/22/2011
-
United States
I can only suggest that you execute the 'equivalent' SQL (in a tool like SSMS) to see what happens...
SELECT EntityId FROM GenericAttribute WHERE [Key] = '...' and [Value] = '...'
-
274
-
1987
-
3/1/2009
-
Bulgaria
There are a few things to check. Start by restarting your appPool. Check sql for any locks.
I highly recommend you download and install http://demo.prefix.io/. You can see slow queries as well as other http related stuff.