I am using felixge/node-mysql module to interact with MySQL database from node.js. I have met the problem when inserting large amounts of data to database in one INSERT
request.
Although here there is description of how to add 500,000 records to database using large INSERT-queries, my script fails with the following error with much more small amounts of data:
{ [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', syscall:
'write', fatal: true }
I think that this bug is somehow linked with the issue #359 in mysql-node's github Load data infile fails with EPIPE for large files, which is not assigned to someone yet for the last 5 months since creation.
So the what is practical size of queries which are guaranteed to be delivered?