To be clear, change NodesHandler.list to finish with:
- return nodes.order_by('id') + return list(nodes.order_by('id'))
I think that will give us whatever prefetching we want, at the expense of having to load all the nodes into memory. But that is what we pay for the prefetch.
To be clear, change NodesHandler.list to finish with:
- return nodes.order_ by('id' ) order_by( 'id'))
+ return list(nodes.
I think that will give us whatever prefetching we want, at the expense of having to load all the nodes into memory. But that is what we pay for the prefetch.