Posts

Showing posts with the label python

GAE - How to make a Free(Cheap) application

If you are paying huge or frustrating scaling out on your Web Application. Looking for "Cloud Solution", and your Team wish to give a try on Google App Engine. Wait... don't. not until you have learn the following things. What mistakes I made in the past 3 years with GAE ( worshiplace , BioCRF ) have given me a lot to share. Maybe there are more coming lol. 1. De-normalise datastore (ndb) "JOIN" is never gonna work in Google NoSQL Datastore - ndb. In theory, "JOIN" will cost you (in terms of money/quota) a lot. What could you do about it? de-normalise your table. Never do a second lookup will save you a lot(its depends, for BioCRF report generation save ~50% db read). Or you could choose Google Cloud SQL. It is not free, we will discuss that in the next post on "COST" 2. Take advantage on Backend Instances Hours I won't use frontend instance for serval things. e.g. report task, email task. Don't forget there are limitat...

Bonus Speed - Profiling - 快!(上)

Image
有冇試過同人講自己寫既program好很快?但係又唔知有幾快呀。 有冇“朋友”行埋來同你講叫你咁咁咁就會快d,但係佢講既野又係9up多ga。 又有冇試過冇啦啦食曬你部機d ram 呀,但係你又唔知邊q個問題喎。 因為大家未試過profiling 吧。 講真,有時用個profiler check一check, 一試便知龍 與鳳 這個道理大家又點會唔明白呀~ 問題係做完試完改完,個老細又唔會加你人工,最多咪講句thank you(on9)=[ 不過,你一生唔會得一個老細,為下一個老細加油吧!轉工急先鋒!上!