By default, the highest MySQL queries length is 1 MB. This results in limiting the maximum number of files that MassTransit can handle in certain situations to 150,000. For example:
However, by configuring the max_allowed_packet setting, you can increase the MySQL queries length in order to allow transfers of more than 150,000 files. To do that:
Open the my.ini file in a plain text editor. You can find the my.ini file in the MySQL installation folder, by default:
%Program Files%\MySQL\MySQL Server 5.1
%Program Files (x86)%\MySQL\MySQL Server 5.1
%Program Files%\MySQL\MySQL Server 5.0
%Program Files (x86)%\MySQL\MySQL Server 5.0
max_allowed_packet=4194304
Now, you can transfer more than 150 000 files with MassTransit.