Re: [google-appengine] Re: New App Id gets 404 on deployment?

2012-07-03 Thread Takashi Matsuo
Hi Brandon,

Can you see your application's dashboard at:
https://appengine.google.com/dashboard?app_id=YOUR_APP_ID ?


On Tue, Jul 3, 2012 at 2:29 PM, Brandon Donnelson
branflake2...@gmail.comwrote:

 The install...

 --
 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/-/KJ48OKZVuj4J.

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




-- 
Takashi Matsuo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: New App Id gets 404 on deployment?

2012-07-03 Thread Brandon Donnelson
Nevermind. Eclipse had me logged into my work account. :)

Brandon

On Monday, July 2, 2012 11:14:18 PM UTC-7, Takashi Matsuo (Google) wrote:

 Hi Brandon,

 Can you see your application's dashboard at:
 https://appengine.google.com/dashboard?app_id=YOUR_APP_ID ?


 On Tue, Jul 3, 2012 at 2:29 PM, Brandon Donnelson branflake2...@gmail.com
  wrote:

 The install... 

 -- 
 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/-/KJ48OKZVuj4J.

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




 -- 
 Takashi Matsuo
  

-- 
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/-/iUXjV6r0cOEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] HRD migration tool hangs for hours - how to find a root cause?

2012-07-03 Thread Alexander Trakhimenok


We are migrating our app to an HRD version and the migration tool process hangs 
on 2nd step Copy at 99% for 10+ hours.

We've restarted migration but it did not help - still hangs at 99% and the 
approximately remaining time is steadily and slowly growing.

I've been googling around and as I understand it can be because of indexes 
issue (5K index entry limit per entity) or some other reason that prevent an 
entity to be stored to the new HRD database. Actually removing some indexes 
helped us to move from 98.50% to 99% and  not  any further.

But we can not find any error/status logs that would point us on what exactly 
entity kind/id causing the issue.

On the Migration Tool screen it says:
=
If there is a problem, you can pause the migration. While paused, all migration 
mapreduces will be paused and but no other actions will be taken until an 
administrator either resumes the migration or reverts the process. To pause the 
migration, please click the button below.
=

But how do we know if there is a problem and what exactly the problem is? It 
would be cool to have a last or list if error messages  entity keys for the 
migration process.

Any ideas how to identify and solve the issue? We have major release pending 
due to limitations of M/S database and would greatly appreciate any help.


I've raised a production issue for this as well 
http://code.google.com/p/googleappengine/issues/detail?id=7787


but may be someone from community can help us to resolve it before Google 
Engineers notice the ticket.


Alexander Trakhimenok


Lead developer on http://www.myclasses.org/ project powered by GAE (AppEngine + 
Python + Django).

-- 
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/-/AYfYbuyKGsYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google app engine 100 URLMap entries limitation

2012-07-03 Thread Kaan Soral
You can do some of the mapping in java/python, for example you can just add 
1 url map, * to main.py and do all of the mapping in main.py

-- 
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/-/-y8JSz07-mcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] does bulk upload work of dev webserver with Python 2.7

2012-07-03 Thread sjh
Hi,

I am unable to do a bulk upload with Python 2.7 to the dev webserver. I am 
able to do a bulk upload to the production server. I was able to do this in 
the past with Python 2.5. My questions:

1. Does bulk upload work on the dev webserver with Python 2.7?
2. Is there something else I should be using instead of bulk upload 
(different datastore, different approach). I notice there is lots of info 
about changes to the datastore but the information is confusing and out of 
date and mixed in the online help pages.

Below is my original post which has the details of the problem I was 
having. I tried a post but did not get any responses, possibly because the 
title was confusing so I am trying again. 

Help much appreciated.

S.

-original post

Hi,

I wrote an application a while back that did a bulk upload. It worked with 
dev_appserver and on my domain. Now the dev_appserver crashes when I try 
and upload a few entries. I remember the dev store was a nightmare because 
of authentication. You had to first open the location of the remote_api in 
your browser, put in a username and pw and then it would work. I managed to 
remember all of that again but I cannot upload the values into the 
dev_appserver -- it just keeps crashing. Note I am using 64-bit and python 
2.7 (before I was using 32-bit and python 2.5). Here is the code to upload 
to the local server:

appcfg.py upload_data --config_file=spectrum_loader.py 
--filename=spectrum_data.csv --kind=Spectrum --url=
http://localhost:8080/theremote_api ./

and this is the error that comes back from the from the application also 
running on 8080.

Uploading data records.
[INFO] Logging to bulkloader-log-20120701.224621
[INFO] Throttling transfers:
[INFO] Bandwidth: 25 bytes/second
[INFO] HTTP connections: 8/second
[INFO] Entities inserted/fetched/modified: 20/second
[INFO] Batch Size: 10
[INFO] Opening database: bulkloader-progress-20120701.224621.sql3
Please enter login credentials for localhost
Email: j...@appengine.com
Password for j...@appengine.com:
[INFO] Connecting to localhost:8080/theremote_api
[INFO] Starting import; maximum 10 entities per post
[ERROR   ] [WorkerThread-4] WorkerThread:
Traceback (most recent call last):
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\ad
aptive_thread_pool.py, line 176, in WorkOnItems
status, instruction = item.PerformWork(self.__thread_pool)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\bu
lkloader.py, line 764, in PerformWork
transfer_time = self._TransferItem(thread_pool)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\bu
lkloader.py, line 935, in _TransferItem
self.request_manager.PostEntities(self.content)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\bu
lkloader.py, line 1420, in PostEntities
datastore.Put(entities)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\data
store.py, line 579, in Put
return PutAsync(entities, **kwargs).get_result()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\datastor
e\datastore_rpc.py, line 809, in get_result
results = self.__rpcs[0].get_result()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\apip
roxy_stub_map.py, line 604, in get_result
return self.__get_result_hook(self)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\datastor
e\datastore_rpc.py, line 1579, in __put_hook
self.check_rpc_success(rpc)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\datastor
e\datastore_rpc.py, line 1216, in check_rpc_success
raise _ToDatastoreError(err)
BadRequestError: app dev~myprog cannot access app myprog's data
[INFO] [WorkerThread-3] Backing off due to errors: 1.0 seconds
[INFO] An error occurred. Shutting down...
[ERROR   ] Error in WorkerThread-4: app dev~myprog cannot access app 
specl
ib01's data

[INFO] 9 entities total, 0 previously transferred
[INFO] 0 entities (3494 bytes) transferred in 21.4 seconds
[INFO] Some entities not successfully transferred

Any ideas would be much appreciated. I could just debug on the domain 
server but it defeats the purpose of the development server -- very 
frustrating!

thanks, sjh

-- 
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/-/htswWO98weYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Datastore Viewer Not Working

2012-07-03 Thread Millisecond
I've been trying to access our Datastore viewer in the AppEngine admin 
interface and it has been throwing an error for the better part of a week. 

Are there any known issues going on? 

We're not on the HRD and do have 250 million records if that makes a 
difference, appid is noticeorange. 

Thanks,
-Casey

-- 
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/-/q-FruHifaVwJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Can anyone explain 5.8 million DB operations?

2012-07-03 Thread Sarang
Hello,

I have an application that was consuming around 11 cents/day of datastore 
read operations. Here is  a snapshot from historical billing:

http://gyazo.com/ee441da7686ddff4f3648383e8d7418c

Today, I wanted to make a small change to a table with around 3000 entries. 
I wanted to add another bool field. So I looped over each entry, read each 
row, added the boolean field, and saved. I was shocked to note that my app 
went over quota and my loop stopped in between. When I looked at the 
dashboard, it is showing me 5.8 million datastore read operations. See the 
snapshot:

http://gyazo.com/2dc918ac61c3af295378b8c1a54de77a 

This is absolutely crazy. Can anyone from the App Engine team please 
explain this?

My setup is Django non-rel. The model had only a few fields and I am not 
doing anything special in save() method. 

Regards,
Sarang

-- 
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/-/p9YMSDN5AEAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] one application, multiply gmail accounts

2012-07-03 Thread maxie
 Simple use case, several developers, one application, how to share that 
application between accounts, 
or we pretty much stuck to use a shared “service” gmail account for that?

-- 
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/-/4VETR7aCfb4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] one application, multiply gmail accounts

2012-07-03 Thread Barry Hunter
One application can have many developers...

https://developers.google.com/appengine/docs/adminconsole/roles


(in fact can have many owners too)

On Tue, Jul 3, 2012 at 7:59 PM, maxie likha...@gmail.com wrote:
 Simple use case, several developers, one application, how to share that
 application between accounts,
 or we pretty much stuck to use a shared “service” gmail account for that?

 --
 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/-/4VETR7aCfb4J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] one application, multiply gmail accounts

2012-07-03 Thread maxie
Thank you, that was easy.

On Tuesday, July 3, 2012 12:07:32 PM UTC-7, barryhunter wrote:

 One application can have many developers... 

 https://developers.google.com/appengine/docs/adminconsole/roles 


 (in fact can have many owners too) 

 On Tue, Jul 3, 2012 at 7:59 PM, maxie xxx wrote: 
  Simple use case, several developers, one application, how to share that 
  application between accounts, 
  or we pretty much stuck to use a shared “service” gmail account for 
 that? 
  
  -- 
  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/-/4VETR7aCfb4J. 
  To post to this group, send email to google-appengine@googlegroups.com. 
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
  http://groups.google.com/group/google-appengine?hl=en. 


-- 
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/-/isHwS1ZT01wJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] I can't delete my application :(

2012-07-03 Thread Fabio Sirna

Hi there,
I'm trying to delete my application: http://wwwfabiosirnacom.appspot.com/

I'e deleted it from my admin console, but the application is stille there. 
Any suggestions?

Thanks in advance.

Fabio 

-- 
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/-/kYByCc6lVP8J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Can anyone explain 5.8 million DB operations?

2012-07-03 Thread Kaan Soral
Considering you use terms like table and row I think you made a bug 
that caused your code to enter an infinite-task loop :)
Joke aside, with the same logic I assume you didn't use tasks and this 
update was done on a user-facing request with 10s deadline?
So is there really a bug from GAE-side or is it possible that there are 
3000 entities or extreme indexes or a bug from your side?

-- 
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/-/UbpUr723mmcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Can anyone explain 5.8 million DB operations?

2012-07-03 Thread Tom Newton
Can we see the code you used to change your table? 

Also, how many properties do you have on the entity you were modifying, and 
are they all indexed?

T

On Tuesday, July 3, 2012 7:53:14 PM UTC+1, Sarang wrote:

 Hello,

 I have an application that was consuming around 11 cents/day of datastore 
 read operations. Here is  a snapshot from historical billing:

 http://gyazo.com/ee441da7686ddff4f3648383e8d7418c

 Today, I wanted to make a small change to a table with around 3000 
 entries. I wanted to add another bool field. So I looped over each entry, 
 read each row, added the boolean field, and saved. I was shocked to note 
 that my app went over quota and my loop stopped in between. When I looked 
 at the dashboard, it is showing me 5.8 million datastore read operations. 
 See the snapshot:

 http://gyazo.com/2dc918ac61c3af295378b8c1a54de77a 

 This is absolutely crazy. Can anyone from the App Engine team please 
 explain this?

 My setup is Django non-rel. The model had only a few fields and I am not 
 doing anything special in save() method. 

 Regards,
 Sarang


-- 
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/-/QHZixiFr_5UJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Can anyone explain 5.8 million DB operations?

2012-07-03 Thread Jeff Schnitzer
Do you have some sort of loop that read forwards N entries to get to
each value?  Ie, each iteration skipped forwards N-1 to get to N.
That would produce N^2 reads, or about 9 million.

Jeff

On Tue, Jul 3, 2012 at 11:53 AM, Sarang sar...@mycontactid.net wrote:
 Hello,

 I have an application that was consuming around 11 cents/day of datastore
 read operations. Here is  a snapshot from historical billing:

 http://gyazo.com/ee441da7686ddff4f3648383e8d7418c

 Today, I wanted to make a small change to a table with around 3000 entries.
 I wanted to add another bool field. So I looped over each entry, read each
 row, added the boolean field, and saved. I was shocked to note that my app
 went over quota and my loop stopped in between. When I looked at the
 dashboard, it is showing me 5.8 million datastore read operations. See the
 snapshot:

 http://gyazo.com/2dc918ac61c3af295378b8c1a54de77a

 This is absolutely crazy. Can anyone from the App Engine team please explain
 this?

 My setup is Django non-rel. The model had only a few fields and I am not
 doing anything special in save() method.

 Regards,
 Sarang

 --
 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/-/p9YMSDN5AEAJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] I can't delete my application :(

2012-07-03 Thread Matt Rosencrantz
Did you try Disable or Delete Application from the Application
Settings tab of the admin console?  You need to first disable the
application, then request deletion which takes a few days.  Did that
not work for you?

On Tue, Jul 3, 2012 at 1:01 PM, Fabio Sirna fa...@fabiosirna.com wrote:

 Hi there,
 I'm trying to delete my application: http://wwwfabiosirnacom.appspot.com/

 I'e deleted it from my admin console, but the application is stille there.
 Any suggestions?

 Thanks in advance.

 Fabio

 --
 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/-/kYByCc6lVP8J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Request Headers Documentation [X-AppEngine-Region]

2012-07-03 Thread Felippe Bueno
Would be great to have more detailed information about X-AppEngine-Region.


I'm assuming it uses iso-3166-2, am I right ?

Thanks


-- 
Sent from my chair

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] ndb BadRequestError only on production

2012-07-03 Thread mma
Hi there.

I get the following error only on production: BadRequestError: BLOB, 
ENITY_PROTO or TEXT properties must be in a raw_property field

It happens when I put() a instance of the Receipt class (extends ndb.Model)

Below, I attach the model and the handler where the code breaks (only in 
production)


class Receipt(RModel):
ownerId = ndb.IntegerProperty()
houseId = ndb.IntegerProperty()
renterId = ndb.IntegerProperty()
 year = ndb.IntegerProperty()
month_number = ndb.IntegerProperty()
 code = ndb.StringProperty()
description = ndb.StringProperty()
value = ndb.StringProperty()

owner = ndb.ComputedProperty(lambda self: Owner.get_by_id(self.ownerId))
house = ndb.ComputedProperty(lambda self: House.get_by_id(self.houseId))
renter = ndb.ComputedProperty(lambda self: Renter.get_by_id(self.renterId))
month = ndb.ComputedProperty(lambda self: 
month_number_to_string(self.month_number))


class RModel(ndb.Model):
created = ndb.DateTimeProperty(auto_now_add = True)
changed = ndb.DateTimeProperty(auto_now_add = True)
creatorId = ndb.IntegerProperty()
changerId = ndb.IntegerProperty()

#def to_dict(self):
# return ndb.to_dict(self, {'id':self.key().id()})

def set_attributes(self, **attrs):
props = self.properties()
for prop in props.values():
if prop.name in attrs:
prop.__set__(self, attrs[prop.name])


class ReceiptNew(BaseHandler):
def Get(self):
user_id = self.get_user_id()
owner = Owner.get_by_id(user_id)
receipt = Receipt(value=)
houses = list(House.gql(where ownerId = :1, owner.key.id()))
renters = list(Renter.gql(where ownerId = :1, owner.key.id()))
context = {'receipt': receipt, 'houses': houses, 'renters': renters, 'new': 
True}
self.render_response('receipt-edit.html', **context)

def post(self):
user_id = self.get_user_id()
owner = Owner.get_by_id(user_id)

data = {
'year': self.request.get('year'),
'month': self.request.get('month'),
'house': self.request.get('house'),
'renter': self.request.get('renter'),
'value': self.request.get('value'),
'paid': self.request.get('paid')
}

receipt = Receipt()
receipt.year = int(data.get('year'))
receipt.month_number = int(data.get('month'))
receipt.houseId = int(data.get('house'))
receipt.renterId = int(data.get('renter'))
receipt.value = data.get('value')
receipt.ownerId = owner.key.id()
receipt.put() # code breaks here, only in production
self.redirect('/receipts')

-- 
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/-/GALrTUBIhTsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Cloud Storage Or BlobStore

2012-07-03 Thread Aswath Satrasala
Hi,
What is the storage recommended to store documents/images while developing
applications on appengine.
What is better supported in terms of API/backups.  Which supports
namespaces?

Regards,
-Aswath

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Can anyone explain 5.8 million DB operations?

2012-07-03 Thread Sarang
Thank you for the replies. I will try to answer all of your questions.

@Kaan, yeah, wrong terms to use. But thats legacy SQL mindset in 
terminology :-)

I was doing the update via a remote shell. I used the following code to 
update:

for ph in phs:  
ph.use_cc = True
ph.save()


The Phone kind has 12 properties. I looked into my index.yaml and there is 
no index with this kind mentioned in there.

These are the stats on this particular Kind. So there were only 1616 
entities I was trying to update.

EntitesBuilt-in IndexesComposite IndexesTotal Size:697 KBytes5 MBytes0 
BytesEntry 
count:1,61643,6420Average Size:441 Bytes127 Bytes

Any pointers would be highly appreciated. If anyone can replicate this on 
their end, that would also be really helpful. 

Regards,
Sarang

On Wednesday, July 4, 2012 1:51:20 AM UTC+5:30, Jeff Schnitzer wrote:

 Do you have some sort of loop that read forwards N entries to get to 
 each value?  Ie, each iteration skipped forwards N-1 to get to N. 
 That would produce N^2 reads, or about 9 million. 

 Jeff 

 On Tue, Jul 3, 2012 at 11:53 AM, Sarang 
 sar...@netsar...@mycontactid.net 
 wrote: 
  Hello, 
  
  I have an application that was consuming around 11 cents/day of 
 datastore 
  read operations. Here is  a snapshot from historical billing: 
  
  http://gyazo.com/ee441da7686ddff4f3648383e8d7418c 
  
  Today, I wanted to make a small change to a table with around 3000 
 entries. 
  I wanted to add another bool field. So I looped over each entry, read 
 each 
  row, added the boolean field, and saved. I was shocked to note that my 
 app 
  went over quota and my loop stopped in between. When I looked at the 
  dashboard, it is showing me 5.8 million datastore read operations. See 
 the 
  snapshot: 
  
  http://gyazo.com/2dc918ac61c3af295378b8c1a54de77a 
  
  This is absolutely crazy. Can anyone from the App Engine team please 
 explain 
  this? 
  
  My setup is Django non-rel. The model had only a few fields and I am not 
  doing anything special in save() method. 
  
  Regards, 
  Sarang 
  
  -- 
  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/-/p9YMSDN5AEAJ. 
  To post to this group, send email to google-appengine@googlegroups.com. 
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
  http://groups.google.com/group/google-appengine?hl=en. 


-- 
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/-/bAhyhHEzC6EJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.