Maybe its not the code?
I ran into a problem with mySQL (if that is what you are using) where the max_allowed_packet variable on the server was set to something around 1,048,576 bytes`.
Although your code is not reflecting this... but it appears you put some debug code together to get the rows after 968000. If the grab before was a whole grab then this would maybe apply, otherwise it will not.
If the total number of characters in the query with related_column is more than that(the default value of max_allowed_packet, you should split it into smaller parts and try again?
I did this and set it to 16MB.
--set-variable=max_allowed_packet=16M
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.