google-app-engine

[google app engine] Avg Cpu , URI uses a hight amount of cpu

Hello i use a servlet that contains a persistence manager object with two objects and when i use it in the dashboard i have this message: "This URI uses a hight amount of cpu and may soon exceed its quota." I have 2300 for the avg Cpu for this uri, why it takes so long? When i'm looking the log at the beginning i have a hight amount o...

How do I ensure data integrity for objects in google app engine without using key names?

Hi- I'm having a bit of trouble in Google App Engine ensuring that my data is correct when using an ancestor relationship without key names. Let me explain a little more: I've got a parent entity category, and I want to create a child entity item. I'd like to create a function that takes a category name and item name, and creates both ...

GAE Datastore - Reduce Cursor String (base 64) Length

Currently, I'm when passing around a cursor string in a URL, and it looks very ugly. I was wondering if there was a way to shorten these? I was thinking I could encode it & decode it somehow, but I don't really know where to start looking for information on this. The cursor string is a base 64 encoded string. Any way to shorten it witho...

Cascade delete in Google app engine datastore

Hi I'm having the fallowing classes in Google app engine import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; public class A { @PrimaryKey @Persistent String pk; @Persistent(dependent = "true") private B b; . . . } and import javax.jdo.annotations.IdGeneratorStrategy; im...

full-text search on bigtable

any insight as to making/optimizing full-text searches on bigtable using java? best practices and such? how do u guys do it? ...

Write data to offline data store in App engine project and then export

I'm new to app engine, so bear it with me. I've a App-Engine web app project that does multiple things and populates Database using JDO persistence. App takes long time to execute, so I prefer running it offline (as time limit is much higher). Now where is this local JDO data persisted? I can access it at http://localhost:8888/_ah/adm...

How to config computer/phone network to access local web server via USB (Android:GAE)?

Current configuration Use Android emulator and GAE tools (to access local GAE service I set uri http://10.0.2.2:8888/XXX and it works. Question I would like to use Android device(phone) via USB to call web service running on connected "local" computer. What is best configuration practice ((I don't have static IP) I am using mac and ...

Upload data to BlobStore using remote api

Is it possible to upload blob to blobstore using remote API (not the standard upload scheme)? I want to write backup/restore script for my application and blobstore is the only thing that doesn't work. ...

SelfReferenceProperty question

I am trying to use google appengine. I have this model: def Human(db.Model): name = db.StringProperty() friends = db.SelfReferenceProperty() This Human has more than one friend. So, how to handle this with google appengine? ...

Store python classes as pickles in GAE?

Hi, I am porting a Python investing application to Google App Engine. Every market that you can trade in is a plugin: for example the stocks trading and FOREX trading are all plugins. The application stores the portfolio (which is a Portfolio class instance containing the active investments (class instances) and history) as a pickle. H...

Google app engine: fails on deployment but works perfectly locally -- nonresponsive html form submit button

I have a small yest App running on GAE under the default free quota. It runs fine locally. When deployed on GAE (appspot), some parts of it do not work. Appspot dashboard does not show any error in the logs. Added code to trap quota limits is not triggered. Why is there a variation between the App running locally, versus failing whe...

User API for Google App Engine far too restrictive?

Looking at the Google App Engine API, it seems that despite all its great features, the User API is extremely limiting. It seems you can only authenticate people who have a Google account, or use an OpenID account, or via some OAuth kung fu (handshaking with a Facebook account etc). This appears to be a major stumbling block for anyone...

Unindexed property using bulk loader for App Engine

How do I specify that a property should not be indexed using the bulk loader yaml definition? transformers: - kind: SomeEntity connector: csv property_map: - property: prop external_name: prop export_transform: int - property: prop_unindexed external_name: prop_unindexed export_transform: int # ... what goe...

GAE self.request.environ and server host

I'm trying to obtain the base URL (hostname) of the server in which my appengine app is running on. Ie something along the lines of wsgiref.util.application_uri(self.request.environ) However it's returning the PATH_INFO which I do not want. Perhaps I'm missing something but even this article states the path info should be omitted. h...

JDO in google app engine other PrimaryKey than type "Key" key possible?

why isn't it possible to define another key than @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; ? If i try to define a @PrimaryKey as say, an Integer I get an Server Error... http://code.google.com/intl/de-DE/appengine/docs/java/datastore/dataclasses.html ...

pyAMF for GAE (Google App Engine), little help needed:

# I need this behaviour: # 1) check if the service from flash is included in the services array # 2) if not, return false or an error | if yes, step 3 # 3) combine the rootPath('app.controllers') with the service name('sub1.sub2.sub3.function_name') # 4) and then get the function('function_name') from the 'app.controllers.sub1.sub2.sub3....

google appengine datastore client

Is there a tool/client to view inside and make queries for google appengine datastore? ...

How to detect if a Blobstore entry is an image so get_serving_url would work?

I have a general purpose file storage backed by Google App Engine Blobstore, when I show users it's contents I would like to differentiate images from other files — I would like to show thumbnail for each image. Python get_serving_url function does not care (at least at dev server) if given blob is in fact an image, java's getServingUrl...

Google App Engine: how to parallelize downloads using TaskQueue or Async Urlfetch?

My Gae application retrieves JSON data from a third party site; given an ID representing the item to download , the item's data on this site is organized in multiple pages so my code has to download chunks of data, page after page, until the data of the last available page is retrieved. My simplified code looks like this: class FetchDat...

GAE bulkloader : entity missing from the auto-generated bulkloader.yaml

Hi, I am migrating a django application to GAE,and am going to use bulkloader to upload existing data. The model is quite simple, basically there are two models: class Tag(db.Model): name = db.StringProperty (required=True) class Entry(db.Model): # some properties ... # ... tags = db.ListProperty(db.Key) I ...