hi Snaky,

Some apps are just not suitable for GAE such as when you need a C
based library. But any simple web2py app should work on GAE too, with
at most minor changes.
Last year I tried running the wiki app on GAE and most of it worked
out of the box.


A few things I needed to consider when developing for GAE:

- may only use inequality filters (<, <=, >=, >, !=) on one property
across all of its filters

- the maximum 1000 records used to be a problem, but no longer

- CPU is the only quota I have ever exhausted because inserting/
deleting records is expensive



And a few problems that can be solved but then you are tied to GAE:

- use blobstore API to store more than 1MB records

- no string matching with LIKE but workaround using ngrams and: prop
>= term AND prop < term + u"\ufffd"

- each request can only last ~20 seconds (DeadlineExceededError) so
you need to break heavy requests into small chunks with task queues


Have a try uploading a simple app to GAE and I think you will be
pleasantly surprised how well it works.
Richard



On Feb 23, 1:43 am, Snaky Love <[email protected]> wrote:
> Hi,
>
> is there a how-to on what to avoid doing wrong when building a webapp
> with web2py which should run on Google App Engine? I found, of course,
> everything that is listed here:
>
> http://web2py.com/book/default/search?search=app+engine
>
> But I still do not feel very confident about which traps to avoid
> stepping in...
>
> Of course I really, really would like to have the app also beeing able
> to run not only on GAE but everywhere else - as I understand it now, a
> simple change of the connection string will make it able to use, let´s
> say mysql with a more "traditional" hosting environment?
>
> That would look like
>
> db = DAL('gae')
>
> to run on appengine and change to
>
> db =  DAL('mysql://username:passw...@localhost/test', pool_size=0)
>
> to make it run anywhere else?
>
> [Of course, only if I do not use libs that are blacklisted on GAE]
>
> Or will the need for datastore-specific programming break my app for
> other databases?
> Certainly it will not be optimized for SQL-Engines, but still run?
>
> Sorry for too many questions :)
>
> Thanks you very much for your attention,
> Snaky

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to