On Wed, May 7, 2014 at 6:30 AM, yngling <[email protected]> wrote: > Bump :) > 2014 18:43:55 UTC+2 yngling: > >> I want to add an entity to the datastore, and at the same time add a >> search document (the document is just a geolocation and a timestamp, with >> an id to locate the real entity). If the transaction fails and the entity >> is not added to the datastore, I naturally do not want the search document >> to be added either. Is there transactional support for adding search >> documents? >> >
I don't believe Search supports transactions at this time. At a Google I/O a few years ago, there was some discussion of transactions support (maybe someone can find the video on YouTube) but I haven't heard anything about it recently. Perhaps the best you can do is add a datastore hook to add the search document after the entity is added: https://developers.google.com/appengine/docs/python/ndb/entities#hooks ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
