Large Messages (1-2MB each)
-
Hi,
I run a club website with around 350 members. I’ve hit a problem with send multiple large messages out. Each message is 1.5MB, as they have embedded images, and I’m queueing around 350 of them.
There were 2 challenges – listing the queue and logs in the admin pages & the cron job.
In both cases the code is fetching all columns and all entries – probably due to the amount of data crashing. However in both cases only a small proportion of the entries are used.
I’ve fixed my issues (sort of) by adding a LIMIT 100 to each of the SELECT SQL statements. This does mean that admin queue only shows up to 100 entries, but it at least means it and the cron job work. (I’m not that bothered about the log display)
The perfect fix would be the queue and the log display using OFFSET and LIMIT during pagination. The other fix would be to leave it all as is and only fetch the full Message text when the user wants it.
The cron-job fix would be to either fetch the list without the message and then fetch each message separately.
Thanks
Dave
- You must be logged in to reply to this topic.