Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Carlos R. Pacheco F.
The solution is to use select2 with ajax El vie, 25 feb 2022 a la(s) 19:58, Jacob Greene (jacobgreene1...@gmail.com) escribió: > If you're using model choice fields, it's very likely you are making an > SQL query for each form set. It should be pretty obvio

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Antonis Christofides
es for a week and I’m starting to lose it…lol Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows *From: *Jacob Greene <mailto:jacobgreene1...@gmail.com> *Sent: *Friday, February 25, 2022 5:58 PM *To: *django-users@googlegroups.com *Subje

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Steve Smith
Thanks for the suggestion. I really appreciate it. Steve From: django-users@googlegroups.com on behalf of Jacob Greene Sent: Friday, February 25, 2022 9:43 PM To: django-users@googlegroups.com Subject: Re: Slow page load performance with a large number of

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
s? I have been playing with > alternatives for a week and I’m starting to lose it…lol > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > *From: *Jacob Greene > *Sent: *Friday, February 25, 2022 5:58 PM > *T

RE: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Steve Smith
2 5:58 PM To: django-users@googlegroups.com<mailto:django-users@googlegroups.com> Subject: Re: Slow page load performance with a large number of formsets (over 25) If you're using model choice fields, it's very likely you are making an SQL query for each form set. It should be pretty o

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
If you're using model choice fields, it's very likely you are making an SQL query for each form set. It should be pretty obvious in the log with debug turned on. On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski wrote: > Steven, are you using ModelFormSet? If so, Is it the initial query > that's sl

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Ryan Nowakowski
Steven, are you using ModelFormSet? If so, Is it the initial query that's slow? The form rendering? Or is it the POST back to the server that's slow? You can use django-debug-toolbar[1] to profile your page and get these metrics. Once you figure out what part is slowest, then you can optimize.

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-08 Thread Steven Smith
What is hard reload? On Monday, February 7, 2022 at 12:43:08 PM UTC-6 abdouli...@gmail.com wrote: > Try hard reload it's little bit faster > > On Mon, Feb 7, 2022, 18:12 Steven Smith wrote: > >> Did this issue ever get resolved? I'm experiencing the same thing. Once >> it hits 100 forms or so

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-07 Thread Abdulrahman Abbas
Try hard reload it's little bit faster On Mon, Feb 7, 2022, 18:12 Steven Smith wrote: > Did this issue ever get resolved? I'm experiencing the same thing. Once > it hits 100 forms or so it gets pretty slow. > > On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote: > >> Yes,

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-07 Thread Steven Smith
Did this issue ever get resolved? I'm experiencing the same thing. Once it hits 100 forms or so it gets pretty slow. On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote: > Yes, if you want speed, using javascript and ajax is probably your best > bet. It will probably also

Re: Slow page load performance with a large number of formsets (over 25)

2014-09-22 Thread Collin Anderson
Yes, if you want speed, using javascript and ajax is probably your best bet. It will probably also reduce merge-conflicts. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Slow page load performance with a large number of formsets (over 25)

2014-09-21 Thread bobhaugen
We have had the same problem, but with a large number of forms. I have profiled the situation and the load time is dominated by form rendering on the server. I remember vaguely something about caching forms so they don't need to be re-rendered, but can't find it now. And I don't understand the

Slow page load performance with a large number of formsets (over 25)

2014-09-20 Thread Jason
We are new to the Django framework and are currently building an application in PythonAnywhere. We have a couple of html pages where the volume of formsets that we are loading up varies from 25 to 100. We find that when we use a small number of formsets, the page loads very quickly. However,

Re: Slow page load

2011-11-18 Thread thanos
Why are you calling os.path.join 27636 times ? These are the questions you could be asking yourself ... On Nov 18, 10:55 am, Dre wrote: > I thought my code was faulty, but the admin interface is also very > slow. > It takes 8096 msec for a model with 1000 database rows to be opened > using the ad

Re: Slow page load

2011-11-18 Thread Javier Guerra Giraldez
On Fri, Nov 18, 2011 at 10:55 AM, Dre wrote: > It takes 8096 msec for a model with 1000 database rows to be opened > using the admin interface with debug-toolbar enabled. It is paginated > to > 100 entries per page, and SQL makes 339 queries in 128.77 msec. > I have two foreign keys on this model

Re: Slow page load

2011-11-18 Thread Dre
I thought my code was faulty, but the admin interface is also very slow. It takes 8096 msec for a model with 1000 database rows to be opened using the admin interface with debug-toolbar enabled. It is paginated to 100 entries per page, and SQL makes 339 queries in 128.77 msec. I have two foreign ke

Re: Slow page load

2011-11-18 Thread Zagor
If your SQL query generates a lot of data the IO handling of that could take a good amount of time to push over the network. But hard to know without having more info. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Slow page load

2011-11-18 Thread Carlos Daniel Ruvalcaba Valenzuela
I think it depends on what you are doing, more details could be helpful, are you doing any kind of processing on the view? such as processing/iterating data returned by a db query, is the server under load?, do you have users concurrently fetching the page while you check it (for example under prod

Re: Slow page load

2011-11-18 Thread Thomas Guettler
Am 18.11.2011 15:32, schrieb Dre: Hi, Please help me debug a very slow page load using mod_wsgi. I installed django-debug-toolbar and got the following results: ResourceValue User CPU time 1152.072 msec System CPU time 56.004 msec Total CPU time 1208.076 msec Elapsed time

Slow page load

2011-11-18 Thread Dre
Hi, Please help me debug a very slow page load using mod_wsgi. I installed django-debug-toolbar and got the following results: ResourceValue User CPU time 1152.072 msec System CPU time 56.004 msec Total CPU time 1208.076 msec Elapsed time1214.114 msec Context switches

Re: Very slow page load in production with mod_wsgi

2010-09-03 Thread Dirk Eschler
Am Freitag 03 September 2010, 12:05:47 schrieb Graham Dumpleton: > On Sep 3, 7:45 pm, Dirk Eschler wrote: > > Hello, > > > > i experience slow page loads in production using mod_wsgi. The django > > debugging toolbar reveals a very high CPU use with lots of voluntary > > context switches: > > >

Re: Very slow page load in production with mod_wsgi

2010-09-03 Thread Graham Dumpleton
On Sep 3, 7:45 pm, Dirk Eschler wrote: > Hello, > > i experience slow page loads in production using mod_wsgi. The django > debugging toolbar reveals a very high CPU use with lots of voluntary context > switches: > > Production (Apache mod_wsgi-3.2, daemon mode, 10 threads): > User CPU time    3

Very slow page load in production with mod_wsgi

2010-09-03 Thread Dirk Eschler
Hello, i experience slow page loads in production using mod_wsgi. The django debugging toolbar reveals a very high CPU use with lots of voluntary context switches: Production (Apache mod_wsgi-3.2, daemon mode, 10 threads): User CPU time3580.224 msec System CPU time 156.010 msec Total CPU t