patrick
Expert Member
One of my sites apps went live unexpectedly at midnight on the blackberry store yesterday, and downloads went from 20 a day to 400 a day. This seemed to push things slightly over the edge without me watching, so I had quite a shock when I woke up.
Anyway, I had to look into optimising my code. I re-wrote a section to cache a number of values, which helped a fair amount, but in doing so I also noticed that there was an empty field where I would have preferred a zero. Empty fields don't bother php, but on the java side on the phone, it kept requesting more data as it didn't understand the blank.
So while I was thinking a VPS upgrade was needed, it now looks like I have plenty spare capacity! Phew



Anyway, I had to look into optimising my code. I re-wrote a section to cache a number of values, which helped a fair amount, but in doing so I also noticed that there was an empty field where I would have preferred a zero. Empty fields don't bother php, but on the java side on the phone, it kept requesting more data as it didn't understand the blank.
So while I was thinking a VPS upgrade was needed, it now looks like I have plenty spare capacity! Phew


