I try with ctrl + F5 and I load my 20 000 records in 20 seconds
David
Other than the above, the only difference with my form is the business object is filled in the ParentFormLoading event.
I would really like to know how you are running your application. Are you running it inside Visual Studio and, if so, how are you running it?
Aaron
I'm using a BusinessBindingSource
I just load my records by clicking on a button
_
private void btnLoad_Click(object sender, EventArgs e)
{
_chrono.Demarrer();
clientBO1.RetournerTousClients();
chrono.Arreter();
MessageBox.Show(_chrono.Valeur.ToString());
}
and my methods RetournerTousClients() is :
What do I wrong ?
Thanks for your answers and your help
un test sur mon portable (Celeron 2Go RAM, SQL Server sur la même machine) me ramène 675000 lignes d'une table dans un grid en 15 secondes.
You have something setup terribly wrong, then David. As a test the other day, I had a grid load over 40000 records in less than 5 seconds....so you clearly have something setup wrong here.
How are you even trying to populate and bind to the grid? Do you have custom properties calling scalar methods in the mix, etc? Are you using a BusinessBindingSource? Because if you have this setup right, it will be WAY faster than what you are describing. In fact, I have never heard of one coming back this slow before (StrataFrame or otherwise). The other day I was consulting an SF user and they had a form taht was loading 80,000 records. Aside from the point that they didn't need to bring this many records back, and their query needed to be optimized, it still came back and loaded the grid in around 20-30 seconds in this case. So I am uncertain of what you may be doing here to produce such poor results. You are welcome to post your sample, but there is clearly something not right in the mix here.
I have just tested an Infragistics grid with 15000 records which runs off an SF BBS. Inside Visual Studio 2008 on a Release build it takes around 3 minutes 20 seconds to open the form when run with debugging. When run without debugging (or when you run the application outside of VS) the time reduces to 7 seconds.
This is not unexpected as VS does place a significant overhead when running an application in debug mode.
Bottom line is you can do it and the above form hasn't been optimized yet.
Regards,