Too much data?
-
To put this one very briefly;
I was asked to have a page on my site that generates a list of all the items submitted by users.
I do a database query, and I render the results into a styled table.
This is accomplished with some php code embedded in the page using the ExecPHP plugin.
This worked fine for datasets up to about 100 items/rows.
But after about 110 or so, the code began to just hang. The page would render, but the contents of the eval() would return nothing, so I’d have a blank page.
By shortening the contents of the Description string from a limit of 1000 characters to 250, I was able to get it to work again, but further testing revealed that when I add enough items, this code is going to die again.
It is as if ExecPHP is going to allow me to add so many characters to a page, and if I exceed that limit, it decides to give up.
My query returns all the data fine, and the data in the variables is fine. The problem happens when I try to echo or print the formatted contents to the screen.
By putting this code in a template file, outside of the page contents, I was able to circumvent this limitation (I think) – but then the wp-postratings info isn’t available from that context, so I get the tag markup and post-id instead.
This site relies heavily on such “list-views” so I guess I’m fortunate that we didn’t end up scaling to a whole lot of feedback. But it would be nice if I could find out the cause of this seemingly weird limitation. 1000 characters times 100 items = 100,000, that’s not a lot. I can write posts with ten times that amount of data that publish just fine.
- The topic ‘Too much data?’ is closed to new replies.