I'm trying to test a view that does an order_by query but the queryset seems to be in a random order
and/or the files, that get a date from auto_now_add aren't in the correct date order
felipebueno joined the channel
luisehk has quit
even if I sleep three seconds after objects.create I seem to sometimes get a queryset that doesn't match the date order
re1 has quit
laerus joined the channel
knbk
Lartza: is it a date or a datetime?
Lartza
datetime field called date
:P
Staunch joined the channel
telex joined the channel
Lynoure
empedokles78: I didn't quite get your question. I tend to stick to rather standard fonts, unless I'm doing something that really requires something fancy
hrm, how do you route migrations when using docker? i'm thinking about adding one image that only does migrations, with a hardcoded hostname the router can detect
Amnesia: or you're not asking for rest framework help?
Amnesia
isn't there a way to do it with just django ? (without monkeypatching the serializer function)
no, I'm actually not:P
fikka
Amnesia: ah sorry
Amnesia: Im not familiar with that
Amnesia
no problemo
thanks nevertheless!
maks25 has quit
happyface joined the channel
maks25 joined the channel
maks25 has quit
maks25 joined the channel
maks25 has quit
maks25 joined the channel
maks25 has quit
GraysonBriggs joined the channel
maks25 joined the channel
maks25 has quit
maks25 joined the channel
maks25 has quit
matsaman joined the channel
pathrocle joined the channel
davidjackson
What do you guys use for CPU profiling? I tried Django Debug Toolbar/Panel, but the profiler overhead swamped my own code in the results and I couldn't tell what was actually slow...
re1 has quit
Tried silk as well, but it seems to be broken. No CPU profile shown in the web UI, and when I dump the profile to a .prof, it shows *way* less time than my actual request used
morenoh149
Amnesia: so serializers.serialize('json', l) doesn't pick up every attribute of l?
AndreasLutro
if the profiler overhead is bigger than the performance of my own code, I just assume there is no performance problems
Amnesia
morenoh149: it only picks up the ones that are part of the model definition
Donitzo has quit
davidjackson
AndreasLutro Well, a basic GET request for a single model is taking like 250ms+ so... there are definitely performance problems :-p
Fuyou
well, djdt will clear if it's not SQL problem at least