Re: [google-appengine] Re: Is it possible for a transactional db.get() to return a stale result if a recent transaction raised a “special” exception?
*Repeating what I wrote on SO:* From what I have read on documents on 'ndb' I understand that if you are running your get() andput() both in 'transactions' (@ndb.transactional), then you will not get stale data. 'ndb' will either serve the updated data or fail both. Transactions either fail or succeed. Also like other dbms, ndb too maintains 'journal'. On Tue, Jun 11, 2013 at 11:27 PM, Alex Burgel abur...@gmail.com wrote: On Tuesday, June 11, 2013 12:51:46 PM UTC-4, Vinny P wrote: For now, let's ignore the transaction and exception details. Suppose you make a simple datastore put, then immediately query the datastore for that entity. There's a good chance that the entity that you just put in won't exist, because it takes time for the datastore to commit and apply the entity (fully write the entity, including all needed indexes, etc). The time to fully write an entity differs depending on how big the entity is, how many indexes are written, etc, but I usually ballpark it at around 100-200 ms. As a side note, this is why sharding exists: because on a high traffic app, a single entity simply cannot be written to fast enough to handle all the incoming writes and not lose data. Within a transaction context, the same principles apply: depending on how soon your db.get executes after the transaction Exception, you may get stale data. The key here is the Exception: it's there to warn you that the apply phase has been delayed for some internal reason. The apply may have already occurred, it may be delayed for an unknown amount of time, or it may not be valid anymore. So just to repeat: an Exception from a transaction may cause stale data. I don't think this is correct. According to this article[1], if the transaction has been committed but not applied, then any subsequent reads, writes, or new transactions to that entity group will cause any unapplied transactions to be applied. So you should not see stale data in this case. [1] https://developers.google.com/appengine/articles/life_of_write -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Is it possible for a transactional db.get() to return a stale result if a recent transaction raised a “special” exception?
Hi Vinny. My understanding is that even if the operations are in different transaction space but if they are of the same ancestor or marked XG=true, the result will be the same. But your point on handling Exception in your earlier mail is very valid. Thanks. *On Tue, Jun 11, 2013 at 11:45 PM, Vinny P vinny...@gmail.com wrote:* On Tuesday, June 11, 2013 1:04:36 PM UTC-5, Ananda-GAE wrote: *Repeating what I wrote on SO:* From what I have read on documents on 'ndb' I understand that if you are running your get() andput() both in 'transactions' (@ndb.transactional), then you will not get stale data. 'ndb' will either serve the updated data or fail both. You're adding a condition that is not necessarily in the original poster's meaning. OP said the get is within a transaction not necessarily within the same transaction as the put. We might be getting our wires crossed here. @OP, are you doing the get within the same transaction as the put? - -Vinny P Technology Media Advisor Chicago, IL My Go side project: http://invalidmail.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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Bad news for GAE/Java from Google I/O
I second this view. Unless of course one is heavily tied to and 'dependent' on a DI framework. *On Thu, May 16, 2013 at 6:52 PM, de Witte wd.dewi...@gmail.com wrote:* Aren't you a bit overrating with your subject title? Dependency injection a la guice and spring, are frameworks which you want to avoid as much as possible. Op donderdag 16 mei 2013 01:52:51 UTC+2 schreef Jeff Schnitzer het volgende: I attended the Autoscaling Java session at Google I/O. In summary, the advice is: * Don't use dependency injection. * Don't use AOP. * Hardcode configuration values as much as possible. In other words, go back to Java circa 2002. There was no discussion of changing routing so that user requests don't see cold starts. I asked about this in person - apparently they're still talking about it and nothing has been done about it. I am sad. Jeff -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Google App Engine email has been deleted accidentally
*re: **...browser gives error *Too many redirects. I encountered this on my browser once when my system's date and time was set to a past date/time. You might want to check your system date/time or try accessing from system. On Wed, May 8, 2013 at 8:31 PM, d...@ilhasoft.com.br wrote: My email account registered in google app engine is d...@ilhasoft.com.br. This account has been deleted in Google Apps manager accidentally. I already created this email again. Now, i can't enter the Google App Engine beccause the browser gives error Too many redirects. Someone can help me? I'm worried because there client projects in this email. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] how to add simple HTML site in Google Web Apps
Can be managed using any run-time. For more read up Google Developer doc about settings in *app.yaml * particularly * *how to configure *static* file parameter. *On Wed, May 8, 2013 at 1:08 PM, Harsh Shastri hbshas...@gmail.com wrote:* want to add simple HTML site to the GOOGLE Web Apps . -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] delete index
A - Abort. Guessing. *On Fri, Mar 15, 2013 at 5:32 PM, srk srikanth.krishnamur...@a-cti.comwrote: * when i delete index for my application through macbook air , it asked for three options and they are N/y/a . i can understand that N- no , Y- yes. Can anyone tell what is meant by a in the options listed. Thanks -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.