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

Are you using Entity Framework or "classic" MM .NET entity objects?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform