Re: Does Django care about max_query_params? [feature request]
https://github.com/googleapis/python-spanner-django/pull/774 seems like an open PR is addressing this. On Tuesday, July 5, 2022 at 6:13:32 AM UTC-4 gurov...@gmail.com wrote: > It's Cloud Spanner. We're using `django_spanner` as a 3rd party connector: > https://github.com/googleapis/python-spanner-django > > On Tuesday, June 28, 2022 at 11:36:08 AM UTC+4 Jason wrote: > >> >> What db are you using? This might also be an issue for your db connector >> lib >> On Monday, June 27, 2022 at 10:49:40 AM UTC-4 gurov...@gmail.com wrote: >> >>> Hi, all! >>> >>> Gotta problem with the number of query params. We're using a backend, >>> which connects to a cloud database, and at some point we suddenly started >>> getting such an error: >>> >>> *Number of parameters in query exceeds the maximum allowed limit of 950* >>> >>> Appearing on this step: >>> >>> >>> *django/django/contrib/auth/management/__init__.py", line 83, in >>> create_permissionsPermission.objects.using(using).bulk_create(perms)* >>> >>> 950 query params is the max number for our backend, and we set the >>> *DatabaseFeatures.max_query_params >>> *to 900. Still, it looks like Django doesn't care. >>> >>> Because of this all of our tests stopped working, bringing a lot of >>> inconveniences during development. Seems to me that it should be fixed on >>> Django side, centralized, 'cause it's unlikely we're the only who met and >>> will meet the problem in future. >>> >>> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7774a7ba-cef3-4b1a-95f3-a5759ad7ca50n%40googlegroups.com.
Re: Does Django care about max_query_params? [feature request]
It's Cloud Spanner. We're using `django_spanner` as a 3rd party connector: https://github.com/googleapis/python-spanner-django On Tuesday, June 28, 2022 at 11:36:08 AM UTC+4 Jason wrote: > > What db are you using? This might also be an issue for your db connector > lib > On Monday, June 27, 2022 at 10:49:40 AM UTC-4 gurov...@gmail.com wrote: > >> Hi, all! >> >> Gotta problem with the number of query params. We're using a backend, >> which connects to a cloud database, and at some point we suddenly started >> getting such an error: >> >> *Number of parameters in query exceeds the maximum allowed limit of 950* >> >> Appearing on this step: >> >> >> *django/django/contrib/auth/management/__init__.py", line 83, in >> create_permissionsPermission.objects.using(using).bulk_create(perms)* >> >> 950 query params is the max number for our backend, and we set the >> *DatabaseFeatures.max_query_params >> *to 900. Still, it looks like Django doesn't care. >> >> Because of this all of our tests stopped working, bringing a lot of >> inconveniences during development. Seems to me that it should be fixed on >> Django side, centralized, 'cause it's unlikely we're the only who met and >> will meet the problem in future. >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/306a4ef7-3a94-488f-bc7e-b505f44e4e32n%40googlegroups.com.
Re: Does Django care about max_query_params? [feature request]
What db are you using? This might also be an issue for your db connector lib On Monday, June 27, 2022 at 10:49:40 AM UTC-4 gurov...@gmail.com wrote: > Hi, all! > > Gotta problem with the number of query params. We're using a backend, > which connects to a cloud database, and at some point we suddenly started > getting such an error: > > *Number of parameters in query exceeds the maximum allowed limit of 950* > > Appearing on this step: > > > *django/django/contrib/auth/management/__init__.py", line 83, in > create_permissionsPermission.objects.using(using).bulk_create(perms)* > > 950 query params is the max number for our backend, and we set the > *DatabaseFeatures.max_query_params > *to 900. Still, it looks like Django doesn't care. > > Because of this all of our tests stopped working, bringing a lot of > inconveniences during development. Seems to me that it should be fixed on > Django side, centralized, 'cause it's unlikely we're the only who met and > will meet the problem in future. > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9c877978-70df-4452-b05d-63b98f551de3n%40googlegroups.com.
Does Django care about max_query_params? [feature request]
Hi, all! Gotta problem with the number of query params. We're using a backend, which connects to a cloud database, and at some point we suddenly started getting such an error: *Number of parameters in query exceeds the maximum allowed limit of 950* Appearing on this step: *django/django/contrib/auth/management/__init__.py", line 83, in create_permissionsPermission.objects.using(using).bulk_create(perms)* 950 query params is the max number for our backend, and we set the *DatabaseFeatures.max_query_params *to 900. Still, it looks like Django doesn't care. Because of this all of our tests stopped working, bringing a lot of inconveniences during development. Seems to me that it should be fixed on Django side, centralized, 'cause it's unlikely we're the only who met and will meet the problem in future. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9a1a3b9c-62a1-496d-ab7e-b12cb5560994n%40googlegroups.com.