You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is more like a question. I have run my R code in Django, however as you said i cannot use multithreading. But I need multithreading cos it's too slow without it. How to run the r code without manage.py runserver --nothreading?
The text was updated successfully, but these errors were encountered:
A WSGI server (which Django is) can have multiple workers. I think some WSGI implementations run the workers in threads, which could cause problems (as each thread uses the same 'instance' of R). However, many fork which is OK. At this level, we are talking about handling multiple requests simultaneously.
Parallel processing inside R is a different issue and If you want to speed things up for a single request, there are lots of ways/packages for doing it. See, for instance this task view. I have not done a lot of it (I tend to do it myself in C++ code internally), but I have also used doParallel with great success a few times.
Hi, this is more like a question. I have run my R code in Django, however as you said i cannot use multithreading. But I need multithreading cos it's too slow without it. How to run the r code without manage.py runserver --nothreading?
The text was updated successfully, but these errors were encountered: