Using _post_put_hooks to create entities in Google App Engine's ndb
I have three models. Call them A, B, and C. Model A has _post_put_hook that creates 100 model B's. Model B has _post_put_hook that creates 100 model C's.
Is it better to have the _post_put_hook triggered a deferred function (aka, task queue) or a put_async? All the hooks have a small amount of computation, but very very limited. I think deferred is safer, but I'd rather do it the "right way."
I'm using Google App Engine's new ndb library.
Note: The reason I'm doing all the _post_put_hooks is that I'm purposefully duplicating and repackaging information.
I am currently looking for the best way to backup my Google App Engine's webapp datastore. From the reading I have been doing it seems like there are two different ways I can do this. I can either use
From App Engine NDB documentation: The NDB API provides persistent storage in a schemaless object datastore. It supports automatic caching, sophisticated queries, and atomic transactions. NDB is wel
I am trying to integrate an iOS application with Google App Engine using OAuth. I found that GTM has an OAuth Controller -- http://code.google.com/p/gtm-oauth/ Can it be used to connect to Google App
I'm developing with gae and ndb and I find that I have to write a lot of code for ndb gets and queries. Sometimes I need two versions (sometimes 3 or more). Suppose I have the following Models and fun
Suppose I have an HTML form as follows: <form ...> Title: <input type=text name=title> Account: <input type=text name=account> <input type=submit value=search> </form> T
We are trying to query App Engine datastore for some general stats using NDB. They don't need to be 100% accurate (i.e., I'm not concerned about eventual consistency); they just need to reflect genera
I'm looking at the Memcache Viewer in my admin console on my deployed Google App Engine NDB app. For testing, I'm using the remote api. I'm doing something very simple: memcache.get('somekey'). For so
Switching to the ndb library on python GAE. Can I use ndb with entities that were created previously using the low-level api? Or do I have to copy all the old entities and re-save them in order to use
I'm trying to create a RESTful web service client on Google App Engine (Java) that consumes Json. I've tried Sitebricks and Jersey, but neither of them seem to work. Is there any framework out there t
I want a rule engine to calculate the truth values of formulas (and/or) + inferring new rules from the current KB. I searched most of the rule engines but I can not find a concrete example. Could you
I am trying to use Google Map in my Android app using Google API V2; I tried the app on my HTC desire phone, but it keeps on crashing. I have tried changing the Project Build Target to Android 2.2 and
I run my google app engine application in one of two ways... Directly by using the application from http://localhost:8080 Or execute unit tests from http://localhost:8080/test When I create entities
I'm setting up a Google App Engine project that provides a simple XMPP translation service: Send a message to the bot using Google Talk, the bot replies with the translated message. In Eclipse, I adde
I'm trying to store a hierarchy in NDB and I'm confused about if I should use just the 'parent' parameter while constructing the keys to new entities or should I include an extra property in my models
I have a need to store an ordered list of strings and am trying to start using ndb. Previously I used a db.StringListProperty. That's not available in ndb though, so what's the recommended alternative
Google App ENgine does not create a file when using teh file apppender.
Does Google App Engine have an equivalent of Django's get_or_create()?
I'm trying to make the get_by_id() work, but I'm not sure what I'm doing is wrong or it does not really work. I'm expecting it to return an entity similar to ndb.Key('Organization',id).get(), but both
I'm using Java Google App Engine with Objectify3.0 (so some of the kinds may look different to standard JPO/JPA). Anyways, I want to be able to retrieve all entities sorted by a property and insert it
I have some entities in the Google App Engine data store which could be quite large (since they have blobs in them, they could have 1MB of data). Let's assume I have an entity class with the following
I found for certain languages the sound files from google translate sound by far most real (compared to other TTS engines availlable for Android). Is the google translate app using a TTS engine? Is t
In OpenCL is there any API for finding number of copy engines in GPU? In cuda we can check this with asyncEngineCount. What is the alternative in OpenCL?
I'm trying to create a notification that is very similar to what the Play Music app from Google uses. Few questions that hopefully someone can answer. Is this notification done with custom RemoteV
I'm trying to get the UK GBP symbol (£) to show up correctly in my Google Chart's table but I'm finding that HTML entities seem to be automatically escaped. var formatter = new google.visualization.Nu
I'm looking for some help with my app. Here's sample code first (stripped down from about 2k lines...) and I'll try to explain what I'm looking for later: from google.appengine.ext import ndb import w
I am building a Google App Engine app that processes user input file, stores its model in the data-store, and offers the user to download the file in any format after processing the model, for that I
I was wondering if using HTML entities in meta tags (like keywords and description) is the best way to go? Does it influence the indexing from search engines?
On Google App Engine I found this code that is fetching a web page's URL: from google.appengine.api import urlfetch url = http://www.google.com/ result = urlfetch.fetch(url) if result.status_code ==
I'm building a web app using Django for Google App Engine, with the djangoappengine library. I'm stuck on getting image uploads working via the admin interface. My models.py is: class Bio(models.Model
Am trying to get all the entities in my datastore,and then display them using HTML. Am trying to do this from inside a RequestHandler but i get the error message AttributeError: type object 'Student'
I'm just experimenting with Appstats and NDB on Google App Engine. I understand that the immediate get following the put would come from the local memory cache but why is there a memcache delete opera
I'm having a problem and I don't find any information about. I define a field in my model like this. class Dates(ndb.model): ... date = ndb.DateTimeProperty(required = True) # I want to store date and
I have following 2 entities. class Photo(db.Model): name=db.StringProperty() registerdate=db.DateTimeProperty() iso=db.StringProperty() exposure=db.StringProperty() class PhotoRatings(db.Model): ratin
I'm using Google App Engine NDB. Sometimes I will want to get all users with a phone number in a specified list. Using queries is extremely expensive for this, so I thought I'll just make the id value
i am trying to fetch the urls using google app engines urlFetch service and implement a proxy site.sites like twitter and and facebook appear disfigured as if they are missing the stylesheet ,even goo
How would one go about using the Google App Engine datastore as a database for remote stand alone java programs? Is anyone aware of a framework that could serialize the entities and make them availabl
I have created a simple application using the Google App Engine Environment Eclipse 4.2 (Juno) Plugin - http://dl.google.com/eclipse/plugin/4.2 JDK 7 I was able to create a sample application and r
I am making a new rails app and I need to use Google places API but I don't know the steps to do that or the best way to use this API. I have tried to search in developers.google.com I found the place
I have a question about using java applet on google app engine. I created 2 classes called InteractiveGraphView1 and SimpleApplet. Using an object of InteractiveGraphView1 inside SimpleApplet. Anyway,
How can I download the revision history list of a Google Drive Document (that the user doesn't own) through an iPhone app? EDIT: I am starting a bounty for this question. I would real appreciate if so
When I create an object with ndb's method put it creates the key automatically of the type Key(kind, id) where id is a number. All over the documentation it shows that you can use a string for the key
I would like to confirm my understanding of eventual consistency in the Google datastore. Suppose that I have an entity defined as follows (using ndb): class Record(ndb.Model): name = ndb.StringProper
Say I have a query that will be executed often, most likely yielding the same results. Is it correct that using: for key in qry.iter(keys_only=True): item = key.get() #do something with item Would p
I have used Google App Engine for Python development, and I have some experience of Enterprise Java development using JSF2 on Tomcat. However, I have been following this guide to set up GAE with JSF2,
I'm developing software using the google app engine. I have some considerations about the optimal design regarding the following issue: I need to create and save snapshots of some entities at regular
Looking at the NDB Cheat Sheet i see that I've been doing it 'correctly' but when using this code: class Chapter(ndb.Model): parentID = ndb.KeyProperty(kind=Chapter) I get this error NameError: name
How can I remove all entities or reset the local datastore on my dev_appserver? I accidentally recursively called a function to create an entity when testing. I am using the Google App-engine SDK on V