Re: Improve queries on django admin

2016-07-22 Thread Rael Max
, Lucas Magnum escreveu: > > You can use `list_select_related` for Django Admin too. > > > > > []'s > > Lucas Magnum. > > 2016-07-21 15:52 GMT-03:00 Rael Max <ozkon...@gmail.com >: > >> Hi everyone, >> >> I'm working in a project with a lar

Improve queries on django admin

2016-07-21 Thread Rael Max
Hi everyone, I'm working in a project with a large mysql database and i've faced with problems generated on django admin list. Basically, the query executed to retrieve a list of items from a model uses a SQL SELECT passing a list of all attributes of model, but usually we only use a small set