Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BO returns data much slower
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
BO returns data much slower
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01504700
Message ID:
01504700
Views:
91
Hello all,

I have a simple Business Object with a method to return data as follows:
public mmBindingList<VCompStylPrcEntity> GetCompanyStylePrcByCompStylColorAndTerms(int compID, int stylID, string colorDesc, string termsDesc)
        {
            return this.GetEntityList<VCompStylPrcEntity>("CompStylPrcSelectByCompStylColorAndTerms",
                this.CreateParameter("@CompID", compID),
                this.CreateParameter("@StylID", stylID),
                this.CreateParameter("@ColorDesc", colorDesc),
                this.CreateParameter("@TermsDesc", termsDesc));
        }
Now when I execute this method in my test bench with parameters that would return all rows, it takes 30+ seconds to return the data, however, when I run the stored procedure that runs this method with the same parameters in SSMS it takes less than 1 second to return the same data. The number of rows being returned is just over 7,000 so its not a ridiculously large data result.

When I execute the method with parameters to limit the rows returned the method runs in one second to return 232 rows so it appears to be related to the returning of data. The result set only has 12 columns with all coluumns either ints, decimals or varchar(50).

Any ideas as to what this discrepancy in time could be related to.

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform