[google-appengine] Re: Bulk Uploading using lot of CPU
okay, after some time i found out i had some 10 indexes defined on the database. after deleting them, the uploading data took cpu down by almost 100% from previous case. --~--~-~--~~~---~--~~ 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] Re: How is an entity key generated?
Hi Nick, thanks for your reply! yes indeed a numeric id would be more readable so, just to be clear and for future reference, your suggestion is to use entity.key().id() to construct the url and Model.get_by_id() to retireve the entity right? On Jul 3, 6:25 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Samus, On Fri, Jul 3, 2009 at 5:29 AM, Samus_mail2sa...@gmail.com wrote: actually, the first thing that came to mind for this was to use it as part of a url to access specific entities since the reference says it's url-safe:http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key and also the same idea is shown on this example: http://code.google.com/appengine/docs/python/datastore/creatinggettin... but of course if the encoding method is not guaranteed to remain the same then this is a bad idea (cool URIs don't change right?) good to know thanks. Usingkeysin URLs is more or less an officially 'blessed' approach. For that reason, I'd revise my earlier statement and say that while it's not totally impossible for the key encoding format to change in future, it's extremely unlikely. That said, you can provide much more user-friendly URLs if you use just the fields you need from the key -www.mysite.com/123is much more user friendly thanwww.mysite.com/somelongbase64string. -Nick Johnson On Jun 17, 7:43 am, Nick Johnson (Google) nick.john...@google.com wrote: I would not rely on the encodingstr(key) remaining the same, no. The only guarantee is that it will be interconvertible - eg, db.Key(str(key)) == key. I can't think of a practical reason why you should be relying on this in the first place, though. -Nick Johnson On Wed, Jun 17, 2009 at 3:43 AM, gae123 pa...@gae123.com wrote: Nick, can we consider what you write below to be part of the API or an internal implementation detail we whould not be relying on? Thanks In the case of 'stringified'keys, what you are seeing is the base64 encoding of the protocol buffer containing the key. You can verify this by going to shell.appspot.com and entering: --- from google.appengine.ext import db db.Key(mystr) --- -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~-~--~~~---~--~~ 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] Upgraded to 1.2.3, dev server never responds now
After upgrading to the 1.2.3 SDK, every hit to the local dev server only gives this in the logs, but otherwise the browser just keeps spinning forever, waiting for a response it never gets: INFO 2009-07-05 14:47:08,925 dev_appserver_index.py:212] Updating / home/calvin/projects/poundofpotatoes/index.yaml Is there something I might have missed? I hadn't done any App Engine work for a while before the update, but I don't see anything obvious that might have changed this then. --~--~-~--~~~---~--~~ 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] Strange production only problem
I have a webapp.RequestHandler derived class called Profile, in a file profile.py. It operates correctly locally. When I deploy to production, it fails. If I simply rename the class to a different name, it works in production. The logs show this for the failure case. type 'exceptions.AttributeError': Profile instance has no attribute 'initialize' Traceback (most recent call last): ...snip... File /base/python_lib/versions/1/google/appengine/ext/webapp/ util.py, line 76, in run_wsgi_app result = application(env, _start_response) File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 491, in __call__ handler.initialize(request, response) I can work around this problem obviously but I wonder if anyone could speculate why is happening. --~--~-~--~~~---~--~~ 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 size limit is 1 or 10mb?
Hi From the docs the request size limit shoul be 10mb, but when i try to upload something with more than 1mb im getting an http response code 400, which even not appear at the app log. For request with 0.9mb all is fine. I read the 10mb limit at http://code.google.com/intl/en/appengine/docs/python/runtime.html and my app is wegif-gae Thanks in advance, Sebastian --~--~-~--~~~---~--~~ 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] OAuth and text_db and google app engine and reading a google spreadsheet
Hi, I'm sure I'm missing something. But I don't see the correct way to read a google spreadsheet from google app engine using OAuth. Is there a simple example? I can get the documents and spreadsheets names, dates, etc. but I would like to access the data. This is an example of reading a spreadsheet via installed app but I want to do it from google app engine using OAuth. Thanks. import gdata.spreadsheet.text_db client = gdata.spreadsheet.text_db.DatabaseClient (username='x...@gmail.com',password='') db = client.GetDatabases(name='My Tracks-street running') table=db[0].GetTables()[0] rows=table.GetRecords(1,1000) for row in rows: print row.content.get('name'),',', row.content.get('date'),',', row.content.get('movingtime'),',', row.content.get('distance'),',', row.content.get('distanceunit'),',', row.content.get('map') for row in rows: print '===' for cell in row.content: print '%s = %s' % (cell, row.content.get(cell), ) --~--~-~--~~~---~--~~ 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] Re: Trying to get my compiled gwt code to work on appengine-python
If you post the relevant portions of your app.yaml it might be easier to see what the problem is - I'm personally running a GWT frontend and python backend on my app right now and it's working fine. I have static mappings for css files and for the application directory (with the compiled html permutations, etc), and I have django treat the base html file as a template. On Jul 4, 5:44 pm, bucaro haml...@gmail.com wrote: The code works fine locally but as soon as I upload the directory and url mappings I get a 500 error. I use a static mapping to map the directory where the gwt code is to a URL path but for some reason appengine doesn't like it. Any ideas? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---