I have a bunch of data that i want to insert and i have decided to use bulk insert for mysql.
insert into friends (requestor, buddy) values (value1, value2), (value2, value1), (value3, value4), (value4, value3), ...
i would like to know the following:
1) can i use ignore? eg
insert ignore into friends (requestor, buddy) values (value1, value2), (value2, value1), (value3, value4), (value4, value3), ...
what happens if i have duplicate? will it a) not insert everything? b) insert the records before the duplicate record and STOP processing the data after that? c) ignore the duplicate and carry on with the rest?
2) is there a limit to the no. of records i can use for a bulk insert like this?
Thank you.