gae-datastore

Intermittent Issue Writing to Google Appengine Datastore

Hi, I have a functioning app and recently have had intermittent problems writing to the datastore. I did not make any relevant code changes, however in the last few days my attempts to write to the datastore sometimes work and sometimes don't. I am trying to save an object that is in a many to one relationship with an existing persist...

AppEngine: Can I write a Dynamic property (db.Expando) with a name chosen at runtime?

If I have an entity derived from db.Expando I can write Dynamic property by just assigning a value to a new property, e.g. "y" in this example: class MyEntity(db.Expando): x = db.IntegerProperty() my_entity = MyEntity(x=1) my_entity.y = 2 But suppose I have the name of the dynamic property in a variable... how can I (1) rea...

GQL Reference for Appengine

Anyone have a good reference guide for GQL (query language for google appengine datastore)? I find the reference guide on the google appengine site very limited with examples ...

get_by_id() will not return model instance

I have a Model called Version that looks like this: from google.appengine.ext import db import piece class Version(db.Model): "A particular version of a piece of writing." parent_piece = db.ReferenceProperty(piece.Piece, collection_name='versions') "The Piece to which this version belongs." note = db.TextProperty() ...

Accessing Google Spreadsheets with C# using ADO.Net Data Providers?

I want use Google Spreadsheets as data storage, but transparently via ADO.Net Data Provider. There is in some place an implementation? ...

Change type of Datastore field to Text from String?

I can't seem to do this. The list that the app engine datastore viewer does not contain Text as an option. I had to change my fields because some of my values were too long for String, but now I can't retroactively fix my old entries. ...

app engine datastore: model for progressively updated terrain height map

Users submit rectangular axis-aligned regions associated with "terrain maps". At any time users can delete regions they have created. class Region(db.Model): terrain_map = reference to TerrainMap top_left_x = integer top_left_y = integer bottom_right_x = integer bottom_right_y = integer I want to maintain a "terrain height m...

Trying to store Utf-8 data in datastore getting UnicodeEncodeError

Trying to store utf-8 into datastore and getting error : Traceback (most recent call last): File "/sinfo/google_appengine/google/appengine/ext/webapp/__init__.py", line 511, in __call__ handler.get(*groups) File "/sinfo/siteinfo/siteinfo.py", line 1911, in get seoEntity.put() File "/sinfo/google_appengine/google/appengine/...

How to delete data from app engine with a filtered query

Here is my code fragment. This code works very fine with local development data store. But doesn't work on real app engine. The query filter used here only returns 181 rows. import com.google.appengine.api.datastore.DatastoreService; import com.google.appengine.api.datastore.DatastoreServiceFactory; import com.google.appengine.api.datas...

What is a pattern for keeping track of current users in google app engine?

Each of my users is polling the server every few seconds. I need to keep a list of the users that have polled in the last 30 seconds handy for a task I have queued to run every few seconds. The obvious way I see to do it is to update a datastore entry every time the user polls, and query the entries that have a timestamp within the las...

Google App Engine's remote_api: Deleting all data in django nonrel

I'm using django non-rel (http://www.allbuttonspressed.com/projects/django-nonrel) and am trying to delete all the data in my production's datastore. I was reading the question posed here http://stackoverflow.com/questions/1062540/how-to-delete-all-datastore-in-google-app-engine but the answer wasn't working for me. Is this because I...

Update datastore in Google App Engine from the iPhone

I'm working on an app that communicates with Google App Engine to update and retrieve user information, but I can't think of a way to modify elements in the datastore. For example, every user for my app is represented by a User object in the datastore. If this user inputs things like email, phone number, etc into fields inside the iPhon...

Entity exists, empty template is returned

I got the following very basic template: <html> <head> </head> <body> <div> <!-- Using "for" to iterate through potential pages would prevent getting empty strings even if only one page is returned because the "page" is not equal the query, it is a subcomponent of the query --> <div>{{ page.name }}</div> <div>{{ page.leftText }}</div> ...

Optimizing appengine entity key usage

Should I care about locality of entities on the Google App Engine datastore? Should I use custom entity key names for that? For example, I could use "$article_uuid,$comment_id" as the key name of a Comment entity. Will it improve the speed of fetching all comments for an article? Or is it better to use shorter keys? Is it a good practi...

Java App Engine Get Auto Generated Key value

I have been trying to port a tomcat/mysql application over to Google App Engine. I am having a little hang up on getting key values of objects that I have just persisted. Is there a way to get the Key value of the persisted object? Does anyone have an code in Java that can show how to do this? Thanks, Eric ...

appcfg.py upload_data require auth in Mac OSX

I have Google App SDK on Mac OSX 1.4.11, all python environment are OK. I try to upload data from manually generated .csv using appcfg.py. When upload directly to Google appspot.com all succeed. Just to perform upload data locally it fail for authentication reason as generated below: Application: myapplication; version: 1. Uploading dat...

Creating simple search for Google App Engine

Is there any simple way to create search for Google App Engine for specific datastore table. Just want to create basic text search for this. ...

Is it possible to create references in Google App Engine?

Let's say I have a datastore that contains mother, father, and child objects. Inside the Mother and Father objects I have a field called child which stores a reference to their child. Is it possible to reference this child from both mother and father without creating duplicate child instances for each (in the style of OOP). Is this how d...

How do I build a flexible counter with 1000+ rows but few reads in Google App Engine?

I have a list of users that only administrators can see (= few reads). This list also displays a count of the number of users in the datastore. Because the list could grow larger than 1000 my first thought was to avoid a normal count() and instead use a sharded counter. However, the problem is that the admins also have access to various...

Querying google datastore by key and sorting by another property

I am using the low level datastore interface in java. I have an entity that stores a collection of Keys. I would like to query the datastore to get all of the entities in the collection. However, I'd also like to sort them on a created date property. So, I'd like to do something like this: Query query = new Query(EndeavorUpdate.ENDEAVOR...