Closed lesterjanpearson closed 7 years ago
Hey @lesterjanpearson, do you think iterator_to_array might fit your use case?
$array = iterator_to_array($queryResults->rows());
this might be faster than looping and turning it into an array. thanks.
No problem! I'm going to close out the issue, but feel free to re-open if there's anything else you'd like to discuss.
is there a way to convert the query result to an array or json?
because I have 10k results and I have to iterate it. was wondering if there is fast way to convert all the result. $queryResults = $job->queryResults($options);