Re: [ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Dominik Szmaj
wtorek, 21 listopada 2017 15:00:49 UTC+1 użytkownik Avraham Serour napisał: > > can you post your model? > > On Tue, Nov 21, 2017 at 3:31 PM, Dominik Szmaj <domini...@snello.pl > > wrote: > >> Hey, >> >> I have a very big performance problem with Django an

[ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-11-21 Thread Dominik Szmaj
Hey, I have a very big performance problem with Django and Oracle db. This legacy db has lots of primary keys as strings from the time when those id's were alphanumerical so it can't be simply converted to number. So when I set FK on such varchar column django seems to not crash but it

Re[2]: How to authenticate a user in websocket connection in django channels when using token authentication

2017-11-16 Thread Dominik Szmaj
Ok, this was entirely my fault. I created groups with id of a user.username and didn't add message.reply_channel to this group right after successful token verification. __ Pozdrawiam, Dominik Szmaj W dniu 15.11.2017 21:13:00, "Dominik Szmaj" <dominik.sz...@snello.pl> pis

Re: How to authenticate a user in websocket connection in django channels when using token authentication

2017-11-15 Thread Dominik Szmaj
Hey, I've done this websocket authorization almost exactly like Robin, and it's working (like receiving token with query params, verifying it and things) but it's not properly opening connection (like its not sending accept: True, which I do after verification) and connection is permanently