Cost of many operations in one transaction

21 views
Skip to first unread message

rekby

unread,
Jul 11, 2011, 11:59:32 PM7/11/11
to google-a...@googlegroups.com
http://www.slideshare.net/ikailan/introducing-the-app-engine-datastore

Slide 80:
- If you write N entities that are all part of 1 entity group, it counts as 1 write.

Is it mean that cost of batch write in transaction will pay as 1 datastore operation?
Do batch/query read many items from 1 entity group pay as 1 datastore operation?

Max

unread,
Jul 12, 2011, 3:21:01 AM7/12/11
to google-a...@googlegroups.com
by my understanding, batch write on same entity group actually writes only once to datastore.

For your second case, if you do it via async queries, then API call is the same but you will be charged way less CPU time than do it sequentially. 

PS: datastore API call is unlimited, so the only thing need to concern is CPU hour.

Timofey Koolin

unread,
Jul 12, 2011, 4:02:09 AM7/12/11
to google-a...@googlegroups.com
See new pricing model http://www.google.com/enterprise/appengine/appengine_pricing.html 

2011/7/12 Max <theb...@gmail.com>
by my understanding, batch write on same entity group actually writes only once to datastore.

For your second case, if you do it via async queries, then API call is the same but you will be charged way less CPU time than do it sequentially. 

PS: datastore API call is unlimited, so the only thing need to concern is CPU hour.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/bNMcWSG19EsJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
С уважением,
Кулин Тимофей.

Телефон: +7 (4852) 974793
ICQ: 114902104
email: tim...@koolin.ru
Blog: http://timofey.koolin.ru
Reply all
Reply to author
Forward
0 new messages