google-code-export / gaewiki

Automatically exported from code.google.com/p/gaewiki
1 stars 0 forks source link

Use transactions #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Creating a page can require several steps:

1. create a new user,
2. create the page itself,
3. create a revision.

If anything bad happens in the middle, garbage remains in the datastore 
which sometimes results in ReferenceProperty errors.

Use transactions.

http://code.google.com/intl/ru-
RU/appengine/docs/python/datastore/transactions.html

Original issue reported on code.google.com by justin.forest on 3 Nov 2009 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by justin.forest on 13 Nov 2009 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by justin.forest on 1 Oct 2010 at 6:25