If you have big query or blob, try to split query or use chunks, thats is better choice in frontend, even in meduim size DWH, if you still need to know that try next: show variables like 'max_allowed_packet'; Also try above here, personally I choose Stevie.