Friday, February 11, 2022

Re: Formsets?!?!?!?!?!?!?!?!?!?



On Sat, Feb 12, 2022 at 12:40 PM Steve Smith <stevesmith0722@hotmail.com> wrote:
Hello all....

I have formsets working....but I seem to be encountering some performance issues if I have more than 25 rows.  I've looked at my database calls....select_related...prefetch_related...and I've polled several audiences...SO....Facebook Groups....and the consensus seems to be that Formsets are bad if you have a lot of rows.  I'm having trouble accepting that because if that was the case why do they exist?  And why is the default like 1000 forms?  I really like the formset concept....but I'm having a hard time accepting that if you have more than 25 rows it's just gonna be "slow".  And by slow I mean when I try to render the form using formsets and I have 100 rows of data with like 12 fields each...it takes 19 seconds or so for the form to render.  Does this sound like normal behavior?  I'm legitimately asking as I honestly don't know.

Thanks in advance for any thoughts or feedback.

Steve

--
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 email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CH0PR18MB4292692992A37BD51AAEB0AFD2319%40CH0PR18MB4292.namprd18.prod.outlook.com.

--
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 email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADA6z%3DT_U_ENqxqjVb0T3My1YVzn%3DBUwQOX4aNupDYhcg05z9g%40mail.gmail.com.

No comments:

Post a Comment