R
Raymond Chiu
Dear All,
I have the following C# code which has one line run very slow when I debug.
I have added the index (default_month and mebr_id) to the fund_choice table
in the sql server 2008 database.
But still no use. Do you know where is the problem???
-------------------------------------------------------------------------------------------------------------------------
IEnumerable<Model.DBML.FUND_CHOICE> FundChoicedto
= from F in fundchoice
where F.Default_Month == '200902' && F.Mebr_Id == fundDto.Mebr_Id
select F;
if (FundChoicedto.Count() > 0) /// It is very slow to run this command
I have the following C# code which has one line run very slow when I debug.
I have added the index (default_month and mebr_id) to the fund_choice table
in the sql server 2008 database.
But still no use. Do you know where is the problem???
-------------------------------------------------------------------------------------------------------------------------
IEnumerable<Model.DBML.FUND_CHOICE> FundChoicedto
= from F in fundchoice
where F.Default_Month == '200902' && F.Mebr_Id == fundDto.Mebr_Id
select F;
if (FundChoicedto.Count() > 0) /// It is very slow to run this command