Channels 2 performance issues

2018-03-26 Thread James Foley
I'm using Channels 2 to build a real time 3D model viewing app where all users can rotate and view a model. I'm having to send quite a bit of data (roughly one message every 20ms) and I've run into some performance issues. Daphne seems to just sit at 100% on a single core causing the messages to

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
Apologies for the double post, I've removed the other one. PYTHONASYNCIODEBUG doesn't appear to give me any warnings. This test I am running is only between two users, each user belonging to the same group. All messages received are pushed back out to all users and filtered clientside. Assumin

Re: Django Channels 2 poor performance and high CPU usage

2018-03-27 Thread 'James Foley' via Django users
CPU though. On Tuesday, 27 March 2018 09:51:44 UTC+1, James Foley wrote: > > Apologies for the double post, I've removed the other one. > > PYTHONASYNCIODEBUG doesn't appear to give me any warnings. > > This test I am running is only between two users, each user belong

Re: Django Channels 2 poor performance and high CPU usage

2018-03-28 Thread 'James Foley' via Django users
SHAKING with the in-memory layer is a bit weird, and > scope is just a normal Python dictionary. Is it possible to put your code > up somewhere in a simple form so I can look over it? > > Andrew > > On Tue, Mar 27, 2018 at 4:11 AM, 'James Foley' via Django users <

Re: Django Channels 2 poor performance and high CPU usage

2018-03-28 Thread &#x27;James Foley' via Django users
hat in the example. On Wednesday, 28 March 2018 09:27:01 UTC+1, James Foley wrote: > > The project I'm working on is a little sensitive. > > I'll put together a test project and try and reproduce my issues in the > same environment, then push it to a repo for you to take

Re: Django Channels 2 poor performance and high CPU usage

2018-04-04 Thread &#x27;James Foley' via Django users
Not exactly a solution, but after farting about with so many configurations I went back and tried channels 1.1.8. Looks like everything runs perfectly fine on 1.1.8 so I'm not sure what 2.x introduced that is causing me issues. On Wednesday, 28 March 2018 13:08:49 UTC+1, James Foley

Add extra fields to a ModelAdmin form

2018-04-30 Thread &#x27;James Foley' via Django users
So, I have a ModelAdmin that I need to add extra fields to. These fields do not exist on the model, but will be dynamically added to a custom ModelForm through the __init__ method, and logic inside clean will handle the returned data on save. I can't seem to find any solid information related t

Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread &#x27;James Foley' via Django users
am running django 1.11. > > Thanks! > > Mark > > On Mon, Apr 30, 2018 at 1:41 AM, 'James Foley' via Django users < > django...@googlegroups.com > wrote: > >> So, I have a ModelAdmin that I need to add extra fields to. These fields >> do not exist