Wednesday, August 14, 2024

Re: Multiple Database problem

This is the first Google result for "django multiple databases":


On Wed, 14 Aug 2024 at 23:15, Dhanushpathi Prakash <dhanushpathiprakash@gmail.com> wrote:
Is there is possible to multiple database with a single app. How?

--
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/0a3e1f45-e0c0-42f1-a3df-76b50f7675a4n%40googlegroups.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/CAFKhtoRgWC0NiPxfAkCMJXxqea7Hu5d2wQ52ueoqm2%3D-vorrXw%40mail.gmail.com.

Re: Multiple Database problem



On August 12, 2024 12:06:17 PM CDT, Dhanushpathi Prakash <dhanushpathiprakash@gmail.com> wrote:
Is there is possible to multiple database with a single app. How?

Re: Multiple Database problem

Yes, Its possible.
Please follow this - https://docs.djangoproject.com/en/5.0/topics/db/multi-db/

Thanks
Suraj

On Wed, Aug 14, 2024 at 8:45 PM Dhanushpathi Prakash <dhanushpathiprakash@gmail.com> wrote:
Is there is possible to multiple database with a single app. How?

--
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/0a3e1f45-e0c0-42f1-a3df-76b50f7675a4n%40googlegroups.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/CAAUoqBEKZVLYLC4drqYFMEvrqn0MFyvx%3DT3XPWJcQyVXDCAJzg%40mail.gmail.com.

Monday, August 12, 2024

Multiple Database problem

Is there is possible to multiple database with a single app. How?

--
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/0a3e1f45-e0c0-42f1-a3df-76b50f7675a4n%40googlegroups.com.

Friday, August 9, 2024

Re: Django Channels: best way to launch multiple workers

Is there any update on this? Do we have any recommendations now on how many workers can run on a server?

On Tue, Oct 10, 2017 at 5:00 AM Andrew Godwin <andrew@aeracode.org> wrote:
I don't have enough hard data to give a recommendation, unfortunately.

Andrew

On Mon, Oct 9, 2017 at 7:14 PM, Piet van Leeuwen <livandpiet@gmail.com> wrote:
On a server is there a recommendation for how many workers to have running?

With Gunicorn we would run...

def max_workers():      return cpu_count() * 2 + 1



On Thursday, February 9, 2017 at 11:38:07 AM UTC+13, Andrew Godwin wrote:
The difference is mostly in Python performance - threading in Python tends to perform worse than using multiple processes, which is why we recommend using multiple processes in the docs. However, you can save a bit of memory usage with threading, so you can use that if you want.

I would not, however, recommend running more than 2 - 4 threads per process, as otherwise you'll likely see performance take a slide due to the GIL.

Andrew

On Wed, Feb 8, 2017 at 11:53 AM, Charlie DeTar <cha...@gmail.com> wrote:
What's the best way to launch multiple Django channels workers on a production server to take advantage of extra cores?


Each server is single-threaded, so it's recommended you run around one or two per core on each machine; it's safe to run as many concurrent workers on the same machine as you like, as they don't open any ports (all they do is talk to the channel backend).

However, `python manage.py help runworker` lists a "--threads" option, which seems to imply that a single invocation of runworker can launch multiple workers.

Is there a functional difference between `./manage.py runworker --threads 4` and launching `./manage.py runworker` process 4 times?

best,
Charlie

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8097b8f7-3f89-49a6-b189-58a0713972ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/96819d5d-cb83-4e11-af79-3c69b16f8b3b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1upDm3iJDCgOWMqkB8od8NKCpBhhH73GqvrjsYTRn3ow9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CAPuMScqLwABtPFChbzKdG-LydF0XxtDjU-%2B4cZvZuVxCk5LMNw%40mail.gmail.com.

Wednesday, August 7, 2024

Django 5.1 released

Details are available on the Django project weblog:


--
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/CAJVoTUtCU-X9dMYJzcKCisNiGdLB6moBR%3D1phwf4LORGT2kb1Q%40mail.gmail.com.

Tuesday, August 6, 2024

Django security releases issued: 5.0.8 and 4.2.15

Details are available on the Django project weblog: 

--
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/CAN%2BfQHw4mW%3Dvg6arF-bRCU_7Zu6bHMtr%2B8BJFhAgDb20Jt9DBQ%40mail.gmail.com.