paleolimbot commented on code in PR #39081:
URL: https://github.com/apache/arrow/pull/39081#discussion_r1416540078


##########
http/examples/get/client.R:
##########
@@ -0,0 +1,24 @@
+library(httr)
+library(arrow)
+library(tictoc)
+
+url <- 'http://localhost:8000'
+
+tic()
+
+response <- GET(url)
+buffer <- content(response, "raw")
+reader <- RecordBatchStreamReader$create(buffer)
+table <- reader$read_table()
+
+# or:
+#batches <- reader$batches()
+# but this is very slow

Review Comment:
   I reprexed in https://github.com/apache/arrow/issues/39090 and will take a 
look before 15.0.0. I would personally recommend the `result <- 
read_ipc_stream('http://localhost:8000', as_data_frame = FALSE)` as best 
practice (since that should take advantage of any streaming happening by the 
server).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to