# LOAD DATA INFILE and binary log

**URL:** <https://forums.percona.com/t/load-data-infile-and-binary-log/1668>\
**Category:** Other MySQL® Questions\
**Created:** [September 12, 2011, 7:02am UTC](https://forums.percona.com/t/load-data-infile-and-binary-log/1668 "2011-09-12T07:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![muthu](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@muthu](https://forums.percona.com/u/muthu)\
**Post date:** [September 12, 2011, 7:02am UTC](https://forums.percona.com/t/load-data-infile-and-binary-log/1668/1 "2011-09-12T07:02:45Z")

</div>

When a file is loaded into mysql server through LOAD DATA INFILE statement multiple events are logged into the binary log as create and exec (or) create , append … and exec , would like to know what is the file size threshold which triggers append events and is it configurable ( version 5.1.x and above ) ?

In production I have observed append events of block length up to 8 MB but local simulation produces ( same my.cnf ) around 16KB of block length , I am trying to figure out the safe value for max\_allowed\_packet in the master so that replication does not fail because of larger block lengths in the binary log and also why for the same my.cnf , table and file data different block length events are produced .

Please help .
