What version of MySQL are you using?
Can you show us some code?
A LONGTEXT field has a maximum length of 4GB (or the max packetsize or memory allowed on the server/client). Therefore, it really doesn't matter how many "lines" of data you have, but rather the size. I'm assuming, though, that you're not exceeding 4GB (or coming anywhere close to it).