if Meta ordering= ['id'] is defined, the "order by" SQL is included in any query, just kills my database indexes, and make the some queries get slow
dshap has quit
hylje_
right
ardu_ joined the channel
asheinfeld joined the channel
mattmcc
luzfcb: If you call order_by() with no argument, it'll clear the ordering clause.
nimomo has quit
As a general rule, I would not set Meta.ordering. Explicit is better than implicit, and all that.
ardu has quit
hylje_
well, it's still explicitly defined on your model…
luzfcb
mattmcc: cool. it works. Thanks.
retailify has quit
rednaw has quit
agentorange joined the channel
holler has quit
Melamo has quit
robvdl joined the channel
apollo13
I would happily nuke meta.ordering from this earth^^
fission6 has quit
ohrstrom has quit
luzfcb
apollo13: after my recent sufferings, can purge meta.ordering and signals from this earth
quetz has quit
apollo13
signals are useful from time to time :)
ubernostrum
apollo13: I find ordering useful sometimes, but I suppose I could always just write a manager that automatically applies it to all querysets for the model.
Signals I abuse the hell out of.
mattmcc
It seems like most of the time all I do with signals is fire off Celery tasks..
apollo13
ubernostrum: really? when is ordering ever useful? don't forget that this affects joins and everything
elit3x has quit
ubernostrum
apollo13: I do a ton of stuff that wants default ordering by a date or datetime field.
domino14 joined the channel
morenoh149 has quit
apollo13
ubernostrum: even over joins and annotations/aggregations?
ubernostrum
apollo13: generally not an issue for the stuff I work with.
mmmikey has quit
apollo13
ok, cause it seriously can kill performance here
and remembering that one of the included tables had an ordering set is nasty imo
ubernostrum
Like I said, if meta.ordering went away I'd just write a manager to apply ordering when I need it.
zamro joined the channel
chau has quit
z0ran has quit
mad_moses has quit
hutch34 has quit
yrch joined the channel
ScutulatIum joined the channel
heinrich5991 has quit
xBBTx has quit
eggstyrone has quit
apollo13
yeah, not sure though that it would be an exact replacement since it would not cover joins if done via the manager?