Hacker News new | ask | show | jobs
by ZephyrBlu 1944 days ago
Funnily enough, I recently optimized some code along these lines.

The way I sped it up was to call `.values()` on the query, which serializes the data into a dict and prevented me from accidentally making subsueqent calls.

PS: Indent by 4 spaces for code formatting.

1 comments

s/ident/indent/
Thanks :).