We are using Query::fetch as we have data we want to select that is too big to fit into memory. Unfortunately, it seems the implementation buffers the whole response rather than reusing the memory. I understand the lifetime-related rationale for this as outlined in #24.
In #247 the RowOwned type was added to help in these scenarios. A function similar to Query::fetch but that is constrained to RowOwned such that it can reuse the memory would solve our scenario and allow querying massive or infinite data sets.
(We cannot split the query up at the moment as we use FINAL and rely on the atomic nature of the single query.)
Thanks
We are using
Query::fetchas we have data we want to select that is too big to fit into memory. Unfortunately, it seems the implementation buffers the whole response rather than reusing the memory. I understand the lifetime-related rationale for this as outlined in #24.In #247 the
RowOwnedtype was added to help in these scenarios. A function similar toQuery::fetchbut that is constrained toRowOwnedsuch that it can reuse the memory would solve our scenario and allow querying massive or infinite data sets.(We cannot split the query up at the moment as we use FINAL and rely on the atomic nature of the single query.)
Thanks