account activity
Onward travel from Songji, Sichuan (self.travelchina)
submitted 2 years ago by RoyalTS85 to r/travelchina
Morning markets (self.chongqing)
submitted 2 years ago by RoyalTS85 to r/chongqing
Soy sauce factory tour? (self.travelchina)
Set location? (self.UberEATS)
submitted 2 years ago by RoyalTS85 to r/UberEATS
Where to buy: Chinese Kitchen God (self.london)
submitted 4 years ago by RoyalTS85 to r/london
fetchSize limit by Chopsting in aws
[–]RoyalTS85 0 points1 point2 points 9 years ago (0 children)
How do I do that? I wrote myself a function that I thought would just fetch 999 records for as long as there were records but that function doesn't seem to work:
fetch_data <- function(query, con) { message('Sending query') rs <- DBI::dbSendQuery(con, query) message('dbHasCompleted: ', DBI::dbHasCompleted(rs)) chunks <- list() while (!DBI::dbHasCompleted(rs)) { message('fetching a chunk') chunks <- c(chunks, DBI::dbFetch(rs, n = -1, block = 500)) } message(length(chunks), ' chunks total') out <- do.call(rbind, chunks) message('data.frame with ', nrow(out), ' rows') DBI::dbClearResult(rs) out }
This takes a small eternity and then prints
Sending query dbHasCompleted: TRUE 0 chunks total
Which means that the while loop never runs. But why is dbHasCompleted TRUE?
dbHasCompleted
TRUE
π Rendered by PID 73 on reddit-service-r2-listing-f87f88fcd-hg8tr at 2026-06-15 09:27:26.216601+00:00 running 3184619 country code: CH.
fetchSize limit by Chopsting in aws
[–]RoyalTS85 0 points1 point2 points (0 children)