DB: MySQL 5.6.27
Package version: RMySQL_0.10.11
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS
Steps to reproduce:
1) Write large data frame > 500K rows & 15 columns to table with existing schema (append = TRUE)
2) Typically 300-400K rows get written, but not the entire data frame. Number of rows written each time are variable.
Batching with a single connection seems unreliable, but batching with separate connecitons works reliable as per example below -- so this smells like a connection buffer / timeout issue.
DB: MySQL 5.6.27 Package version: RMySQL_0.10.11 R version 3.4.0 (2017-04-21) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.2 LTS
Steps to reproduce: 1) Write large data frame > 500K rows & 15 columns to table with existing schema (append = TRUE) 2) Typically 300-400K rows get written, but not the entire data frame. Number of rows written each time are variable.
Functioning workaround: Batch the write with new connection per batch eg: