Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BO returns data much slower
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
BO returns data much slower
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Divers
Thread ID:
01504700
Message ID:
01504700
Vues:
90
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform