I have been using mostly .values()
to speed up my django queries.
Recently I tried to use the .only()
which I assumed is only slightly slower than values with the added benefit of not having to deal with dictionaries (e.g. key typos, no code auto-complete)
But it seems that in loading 1000 objects, .only()
came up ~.5-1 second slower than if I were to use .values()
(which takes about 4s).
Have any of you experienced similar performance, and can anyone confirm or repudiate this observation?