Category > google app engine

Manso Hack: Speedup Google App Engine SDK SQLite Database

I was trying to initialize a local database using the Google App Engine SDK, and I was going crazy. –use_sqlite parameter was not even solving my problem. Inserts on the database were really slow, like 10 per second. A nightmare. OK, ok, it is an SDK, it emulates the server… it is intended to be […]

Continue reading

, , , , ,

[SOLVED] Add Unique Constraints to Google App Engine databases

The problem: Google App Engine rules! The truth is that I’m starting to feel confortable programming in Python, although I still like the curly braces to indentate. Anyway, the datastore used by Google is superpowerful and supersimple to use, but it has some limitations. With the App Engine SDK you can easily say which attributes […]

Continue reading

, , , ,

How to get user-agent in Google App Engine using Python

User-Agent tells which is the client application that is making the request. It tells if it’s a browser (and information which browser it is), if it’s a robot (for example a Google/Yahoo/Bing spider), …  In theory the string is present in all HTTP headers, no matter which client is doing the request, but it might […]

Continue reading

, ,

Max URL (or GET) length in Google App Engine

I’ve done some tests in order to evaluate what is the maximum length of a URL that the different browsers can handle, and I ended up with a restriction on the server-side. According to the tests I’ve been doing, the maximum length of a URL in Google App Engine is 2048 characters. So, if you […]

Continue reading

, , ,

GeoIP in Google App Engine

It is surprising to me that Google does not offer any service or method in Google App Engine to get the geographic location from a IP. This is something they have in tons of products, and offering this will be something really simple to do for them. I don’t see why they are not offering […]

Continue reading

, ,