Re: [google-appengine] ReferenceProperty prefetching: am I doing it backwards?

2010-06-01 Thread djidjadji
tagresults = models.Tag.all().order(sort_order).filter("name =",tag_name).fetch(10) article_keys = [Tag.article.get_value_for_datastore(f) for f in tagresults] results = db.get(seed_keys) This will not result in a datastore fetch for each article key you need. The ReferenceProperty already contain

Re: [google-appengine] Re: A really easy question

2010-06-01 Thread Massimiliano
Dear Geoffrey, I need to pass to the render() three information: the main.hmtl, the logout URL (lgourl) and the list of element in need to be displayed in the html. How can I do this? is it this method wrong? Can't I give to the render() two dicts? Regards Massimiliano 2010/5/31 Geoffrey Spear

Re: [google-appengine] ReferenceProperty prefetching: am I doing it backwards?

2010-06-01 Thread Mr. Rajiv Bakulesh Shah
Hi, Ben. My app (a social bookmarking service) is similar to yours. Conceptually, you provide a URL, and my app returns relevant tags. Conversely, you search for keywords, and my app returns relevant URLs. You can play with my app here: http://imi-imi.appspot.com/ Auto-tagging and search ar

[google-appengine] Re: ReferenceProperty prefetching: am I doing it backwards?

2010-06-01 Thread Tim Hoffman
Yep you are doing it wrong. You have tagresults = models.Tag.all().order(sort_order).filter("name = ",tag_name).fetch(10) article_keys = [f.article.key() for f in tagresults] The minute you reference f.article you have dereferenced article and now have the object, then you are fetching i

Re: [google-appengine] Re: A really easy question

2010-06-01 Thread djidjadji
self.response.out.write(template.render('main.html', {'lgourl':lgourl,'lista':lista})) 2010/6/1 Massimiliano : > Dear Geoffrey, > I need to pass to the render() three information: the main.hmtl, the logout > URL (lgourl) and the list of element in need to be displayed in the html. > How can I do t

Re: [google-appengine] Re: ReferenceProperty prefetching: am I doing it backwards?

2010-06-01 Thread djidjadji
Hi Tim, It's not recommended practice to use the Model._property members of the object. These variables are implementation dependent. Better to use the get_value_for_datastore() method of the Property. 2010/6/1 Tim Hoffman : > Yep you are doing it wrong. > > You have > > tagresults = models.Tag.a

[google-appengine] Re: ReferenceProperty prefetching: am I doing it backwards?

2010-06-01 Thread Tim Hoffman
Hi yep, I did refer to Nicks blog, which is a much better approach. Thanks for pointing that out. Rgds T On Jun 1, 6:01 pm, djidjadji wrote: > Hi Tim, > > It's not recommended practice to use the Model._property members of the > object. > These variables are implementation dependent. > Better

[google-appengine] Re: Getting rid of JDO (loading requests too expensive)

2010-06-01 Thread Jake
Hey, If you haven't done so already, check the Objectify group for similar posts. That mailing list is simply amazing and I often go there with any GAE datastore related question. In response to your question, I did remove some jars, but I build my project with some crazy hacked-together maven i

[google-appengine] Re: A really easy question

2010-06-01 Thread Backpack
Gather all your data in one dict: data={ 'lgourl':lgourl, 'lista':lista, 'more':stuff } self.response.out.write(template.render(view,data)) On Jun 1, 3:09 am, Massimiliano wrote: > Dear Geoffrey, > I need to pass to the render() three information: the main.hmtl, the logout > URL (lgourl)

[google-appengine] Logs counted towards space quota?

2010-06-01 Thread gwstuff
Hi, Are logs currently counted towards an App's quota? If so, is there any way to delete old log messages? I'm trying to understand the storage behavior of my app: Last updatedTotal number of entitiesSize of all entities 0:38:35 ago 122,918 41 MBytes However, under quotas: Tota

Re: [google-appengine] Logs counted towards space quota?

2010-06-01 Thread Jaroslav Záruba
Could it be the rest are indexes..? regards JZ On Tue, Jun 1, 2010 at 5:08 PM, gwstuff wrote: > Hi, > > Are logs currently counted towards an App's quota? If so, is there any > way to delete old log messages? > > I'm trying to understand the storage behavior of my app: > > Last updatedTot

Re: [google-appengine] Logs counted towards space quota?

2010-06-01 Thread Nick Johnson (Google)
On Tue, Jun 1, 2010 at 4:08 PM, gwstuff wrote: > Hi, > > Are logs currently counted towards an App's quota? If so, is there any > way to delete old log messages? > No. There's a fixed amount of space set up for each app's logs at different log levels, and they act as a circular buffer, evicting

[google-appengine] Problems with email from App Engine.

2010-06-01 Thread Tony Of The Woods
I set up a simple app that emails comments submitted on the site to myself. Firstly it's not completely clear from the docs what constitutes a legal sender for an email. Is it all of the following? : (a) a registered developer of the application (b) any legal receive address for the app, eg: exam

[google-appengine] node allocation

2010-06-01 Thread theresia freska
Hi list, Is there any way to control how many nodes we want to use? I want to compare request time of using n nodes to run my app. I use Java, but any input is appreciated. Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to

[google-appengine] Updating Google App Engine datastore

2010-06-01 Thread Víctor Mayoral
Hello, I've just an applications using GWT and GAE. After reading the docs and doing some examples I decided to begin coding but soon I reach something tricky. My application data would be at the GAE datastore using JDO. I want to assume that the app "will live". Let me explain this: The entities

[google-appengine] Get, set, notify services

2010-06-01 Thread Mitja Felicijan
Hi. I need to develop 3 services for a personal project. Idea in doing this via google app engine is interesting. But I have couple of questions. My services will receive data from external devices and their states will be stored in database. On the client side a web application will do some oper

[google-appengine] Accessing xml files in war directory

2010-06-01 Thread mark
Hello I am running this code server side and it is working fine in Development mode, buy when I push it to the app engine it is coming back null. DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse("test.xml"); d

[google-appengine] Re: Getting rid of JDO (loading requests too expensive)

2010-06-01 Thread Brian Slesinsky
Objectify doesn't scan the classpath so its startup time shouldn't be affected by unused jars. However, other libraries in your application might scan the classpath, so getting rid of unused jars might still be a good idea. On May 29, 7:42 am, Amir Michail wrote: > On May 28, 7:33 pm, Viðar Svan

[google-appengine] Accesing my application-files

2010-06-01 Thread Oggy
Hi I'm new with google app engine. I just deployed my Application "molwind" to the engine. In my web.xml i described a parameter for the http://java.sun.com/dtd/web-app_2_3.dtd";> Server com.emd.worldwind.servlet.Server configurl http:

[google-appengine] Blobstore upload range

2010-06-01 Thread jcjones1515
Does the blobstore support the HTTP 'Range' request header when uploading data? I see that it supports it for downloading, but it would be helpful to be able to have our client code break up large uploads into several HTTP requests using the Range request header. -- You received this message bec

[google-appengine] Re: Server Error 500

2010-06-01 Thread Marvin P.
I've been getting 500 Errors on and off as well since the May 25. It's very annoying. On May 31, 1:47 pm, DJB wrote: > I've been receiving "Error 500" for the past (3) days (may 29-31). > > Details are below. > > Is this widespread? or only me? > > thanks, > David > > C:\Program Files (x86)\Googl

Re: [google-appengine] Re: Can't enable billing

2010-06-01 Thread Jason (Google)
There was a substantial backlog in the billing pipeline starting late last week, which caused some discrepancies between the billing status that was reported in the Admin Console and the quotas that were actually being enforced. We're working on processing the backlog and preparing a fix for this s

[google-appengine] Re: node allocation

2010-06-01 Thread Geoffrey Spear
On May 31, 5:06 pm, theresia freska wrote: > Hi list, > > Is there any way to control how many nodes we want to use? I want to > compare request time of using n nodes to run my app. I use Java, but > any input is appreciated. Thanks! No. The system automatically allocates instances as they're

[google-appengine] need *.appspot.com certificate help

2010-06-01 Thread Houston startup coder
We have a client app on a tablet accessing GAE, and we want to install the *.appspot.com certificate so every time the client app accesses GAE for data transfer it won't prompt the user to accept the *.appspot.com certificate. Actually, we don't ever want the user to be prompted, so we want to ins

[google-appengine] Re: Query Latency, etc

2010-06-01 Thread James
Bay - Well put. Query latency status page is nearly all red today. Same on Sunday. Ikai - A little transparency would go a long way here. Can you oblige? On May 28, 12:39 pm, Bay wrote: > There just needs to be more information. This is a service people pay > money for. Where are the explan

[google-appengine] Re: Query Latency, etc

2010-06-01 Thread bFlood
agreed, that's the worst Query latency graph I've ever seen i really hope the answer to all of this doesn't come down to: "buy GAE for Business, it has an SLA" On Jun 1, 3:25 pm, James wrote: > Bay - Well put. > > Query latency status page is nearly all red today.  Same on Sunday. > > Ikai - A

[google-appengine] Re: Tasks Queues still manual in 1.3.4?

2010-06-01 Thread Greg Tracy
I'm using the App Engine Launcher on XP and it works for me. On May 31, 7:24 pm, hawkett wrote: > Slight possibility - looks like both Ryan and Nick are using the app > engine launcher, which is a mac only application that contains a copy > of the SDK. Are any of the people reporting it working

Re: [google-appengine] Google engine upload

2010-06-01 Thread Ikai L (Google)
Which upload APIs are you referring to? On Tue, May 25, 2010 at 10:06 AM, Ivan Junckes Filho wrote: > Hello, I have a doubt about using google upload API. If I use those > API's and decide to host my app in another place will I be able to use > the upload or I will have to implement everything ag

Re: [google-appengine] Searching through Model relationships in Google App Engine?

2010-06-01 Thread Ikai L (Google)
You should balance the needs of querying for children against updating the parent - if you are checking for the lack of children much more than you are actually updating parents, it will be way cheaper to implement a boolean that denotes whether or not the parent has children. This isn't a relation

Re: [google-appengine] Re: Tasks Queues still manual in 1.3.4?

2010-06-01 Thread Ryan Weber
Has anyone on a mac w/osx been able to get it to work via the launcher? On Tue, Jun 1, 2010 at 3:28 PM, Greg Tracy wrote: > > I'm using the App Engine Launcher on XP and it works for me. > > > On May 31, 7:24 pm, hawkett wrote: > > Slight possibility - looks like both Ryan and Nick are using th

Re: [google-appengine] mapreduce

2010-06-01 Thread Ikai L (Google)
Hi, The first release of the mapper API will require a manual invocation of the task. If you need to map all entities, you will have to run the task. There's no continuous process monitoring changed entities. You can probably build this into your update workflow. On Wed, May 26, 2010 at 1:29 AM,

[google-appengine] Can't edit datastore entity in Control panel if entity has a ShortBlob

2010-06-01 Thread Spines
On the appspot.com admin control panel, I can't edit a datastore entity if it has a ShortBlob property. When trying to edit it, the shortblob is shown in an editable textbox as ��,�:3�. When trying to save the entity, I get a page that says, "A server error has occurred.". This happens when makin

Re: [google-appengine] Total number of entities

2010-06-01 Thread Ikai L (Google)
Is it possible you are using sessions? Note that indexes also take up space, though they should not add to your entity count. On Thu, May 27, 2010 at 12:52 AM, Stefano wrote: > Hi... > Datastore Statistics says I'm using 74KB with 247 entities, but > counting the entities separately they are les

Re: [google-appengine] plans for 2-factor auth?

2010-06-01 Thread Ikai L (Google)
Do you mean such as with RSA tokens and such? You can definitely build your own one time password implementation and email or (via an SMS or email SMS gateway) SMS for a one time password. On Thu, May 27, 2010 at 12:21 PM, Aljosa Mohorovic < aljosa.mohoro...@gmail.com> wrote: > are there any plan

Re: [google-appengine] indexes stuck building

2010-06-01 Thread Ikai L (Google)
Can you vacuum your indexes? They are in error state at the moment. On Thu, May 27, 2010 at 10:41 AM, Risto wrote: > Hi, > > I have a few indexes which are stuck at the building state. I've > uploaded the index definitions about 11hours ago and on the dashboard > it still shows building: queued

Re: [google-appengine] Re: Google IO session videos

2010-06-01 Thread Ikai L (Google)
The videos are up: http://www.youtube.com/view_play_list?p=FBF991DAE0E02FED We are constantly working on service issues, believe me. No one is getting a break here. On Fri, May 28, 2010 at 6:30 PM, Jaroslav Záruba wrote: > We're probably

Re: [google-appengine] Accessing xml files in war directory

2010-06-01 Thread Ikai L (Google)
I'm able to parse XML doing this: File dir = new File("WEB-INF/catalog"); File[] files = dir.listFiles(); for(File file : files) { if(file.isFile() && file.getName().endsWith(".xml")) { parseCatalogXml(file); } } The files are in my WEB-INF/catalog folder. On M

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Mark
+1 as worried, I'm investing time in app engine and this is quite discouraging to say the least! How often does this happen? (I don't have a live app yet), but should I abandon app engine now before getting myself in trouble? On May 27, 1:32 pm, Jody Belka wrote: > And what do you know, no-one fr

[google-appengine] Video of App Engine sessions from Google I/O 2010 are up!

2010-06-01 Thread Ikai L (Google)
Hey guys, I just wanted to let everyone know that the App Engine sessions from Google I/O 2010 are now online for your viewing pleasure. Check them out here: http://googlecode.blogspot.com/2010/06/app-engine-teams-trip-to-io-2010-recap.html

[google-appengine] Re: Tasks Queues still manual in 1.3.4?

2010-06-01 Thread Kenneth
When I go into the dev console it still says that tasks will not run automatically but they do, so that's a red herring. What I was seeing was the eta for the task was 2 hours in the future. So by changing the time zone settings the eta was now correct and the tasks were running immediately. YMMV

Re: [google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Ikai L (Google)
I just wanted to let you guys know to hang in there. We're working on a post-mortem describing what went wrong and steps we are taking to prevent this from happening again. I don't have an ETA for this yet, but we've done this before ( http://groups.google.com/group/google-appengine/browse_thread/t

[google-appengine] DeadlineExceeded on cold hits.

2010-06-01 Thread Dave Peck
Hi, In the past week, I've seen an alarming number of DeadlineExceeded exceptions on cold hits to my applications. Most of the stack traces are shallow -- things blow up well before my code is hit. See http://pastie.org/988269 for a stack trace. The `bootstrap.py` file is more-or-less a direct c

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Mark
Thanks Ikai - I didn't see the downtime group before reading this thread: http://groups.google.com/group/google-appengine-downtime-notify looks like good communication there, looking forward to deploying my app, Thanks On Jun 1, 3:16 pm, "Ikai L (Google)" wrote: > I just wanted to let you guys

[google-appengine] Request was aborted after waiting too long to attempt to service your request.

2010-06-01 Thread Waleed Abdulla
I'm getting a ton of these errors today (about 20,000 errors) that rendered my app almost non-functioning. Can anyone from the app engine team take a look? app id is networked*hub. * * * I'd really appreciate it. For some reason, this app seems to have proven hard for the app engine to scale. Rega

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Millisecond
Thanks Ikai, I look forward to reading the post-mortem. The last one was indeed very good. Will the post-mortem address the dramatically increased latency since the 25th? It's ongoing and has already caused tens of thousands of errors on our site alone. As far as I can tell, there's been no off

Re: [google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Ikai L (Google)
The post-mortem should address the outage as well as the latency leading up to the outage. We're keeping an eye on latency now. Are you experience latency in your application? On Tue, Jun 1, 2010 at 3:31 PM, Millisecond wrote: > Thanks Ikai, I look forward to reading the post-mortem. The last

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Millisecond
Yes, app id noticeorange. 3500+ latency related errors today in 2 major and ~10 minor spikes. Most days since the 25th have had 5k+ errors, with several 20k+. It's usually related to ms/req spikes coinciding with the high latency spikes on the query latency graph. -C On Jun 1, 3:34 pm, "Ikai L

[google-appengine] Re: Updating Google App Engine datastore

2010-06-01 Thread Tristan
Not sure how it would work in JDO but its simple to add properties in low-level datastore. I store my entities with a version property, when I update the entity, I change the version and change my code to either intialize a non- existing property on an old entity, or to delete a deprecated propert

Re: [google-appengine] Get, set, notify services

2010-06-01 Thread Ikai L (Google)
There may be some delay in the time between sending an XMPP message and it being processed by your application, but for all practical purposes it should be acceptable. You could always build an HTTP REST API and just call that directly - this would guarantee that the action is invoked as soon as it

Re: [google-appengine] 403 error - automated queries

2010-06-01 Thread Ikai L (Google)
Are the gadgets making requests from App Engine? Or are they calling makeRequest to App Engine which is in turn using the GData API? On Sun, May 23, 2010 at 5:56 PM, mike wrote: > Hi, I have 3 gadgets that retrieve data from Google base. the gadgets > are hosted on App Enginer. About a week ago,

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Millisecond
Since I posted that my dashboard has been wonky and the errors counting _backwards_. So, there are only ~2k errors at the moment, but there definitely were ~3500 when I first posted. Really don't think I'm going crazy but I do feel like it with the dashboard at times... -C On Jun 1, 3:41 pm, Mi

[google-appengine] Updating a detached object which has a collection which has another collection

2010-06-01 Thread Sandeep Arneja
I am update the collection field of a detached object and persisting it. Upon view the object i see that it still has the old items in its collection. @PersistenceCapable(detachable="true") @FetchGroup(name="fet_num", member...@persistent(name="numbers")}) public class DirectoryBean { pub

[google-appengine] Re: Get, set, notify services

2010-06-01 Thread Mitja Felicijan
Thanks for the quick reply. REST api or some sort of RPC services will sort my problem with get or set device. But the problem now is that I have client GUI app running in browser. So I would probably need to write some sort of Comet code on the browser side. And everything happening on the hardwar

[google-appengine] Re: Tasks Queues still manual in 1.3.4?

2010-06-01 Thread hawkett
The 'mac only' theory on the app engine launcher was a tad out of date :) I was looking at the SDK download page (which only lists it explicitly for mac)... sorry about that. On Jun 1, 8:28 pm, Greg Tracy wrote: > I'm using the App Engine Launcher on XP and it works for me. > > On May 31, 7:24 pm

[google-appengine] 入れ込み

2010-06-01 Thread Nariya Takemura
今ドリコムの人から電話ありました ・入れ込み作業して欲しい ・終わったら、日吉さんとアプリゲットのメアドまでメールで連絡が欲しい という事です。 今までのメールでついてた Platinum Egg Inc. Nariya Takemura President takem...@platinum-egg.com twitter:@nariya skype:myr_myr ---

[google-appengine] Re: Unscheduled downtime/problems lately

2010-06-01 Thread Brandon Thomson
We are also experiencing very high query latency, sometimes enough that a non-compound query that matches one datastore entity will not complete after 30s and all our available serving instances get eaten up. We're going to try adding deadlines for all queries today and see if that saves our applic

[google-appengine] Re: DeadlineExceeded on cold hits.

2010-06-01 Thread Brandon Thomson
Yes, we are also seeing this. Usually the call at the end of the traceback is something related to the filesystem. I think this is caused by the increasingly poor datastore performance. On Jun 1, 6:16 pm, Dave Peck wrote: > Hi, > > In the past week, I've seen an alarming number of DeadlineExceede

Re: [google-appengine] Re: DeadlineExceeded on cold hits.

2010-06-01 Thread Waleed Abdulla
+1 and it's generally much higher on all requests, not only cold requests. On Tue, Jun 1, 2010 at 7:21 PM, Brandon Thomson wrote: > Yes, we are also seeing this. Usually the call at the end of the > traceback is something related to the filesystem. I think this is > caused by the increasingly

[google-appengine] Appstats for Java not working

2010-06-01 Thread Thomas Wiradikusuma
Hi guys, I followed instructions from http://code.google.com/appengine/docs/java/tools/appstats.html, basically just copy-pasting the whole thing. When I tried from Chrome, after login using my one-and-only admin account, I got "Error: User not in required role". Trying from Safari gave me "Error:

[google-appengine] Re: HTTP Delete from Chrome not working

2010-06-01 Thread pkeane
Anyone else have this same problem or know a fix? This seems to be pretty much of a deal-breaker for building REST-based interfaces on App Engine. --Peter Keane On May 15, 10:23 pm, pkeane wrote: > Hi All- > > I have seen mention of this same problem > here:http://stackoverflow.com/questions/2

Re: [google-appengine] Re: Can't enable billing

2010-06-01 Thread Kazuki Kyakuno
thanks! I'll wait to fix it. 2010/6/2 Jason (Google) : > There was a substantial backlog in the billing pipeline starting late last > week, which caused some discrepancies between the billing status that was > reported in the Admin Console and the quotas that were actually being > enforced. We're

[google-appengine] Re: Updating Google App Engine datastore

2010-06-01 Thread Víctor Mayoral
Hey Tristan! Thanks for your answer. I will check the docs again and take a look at the low level API. The notification + trigger method seems pretty intelligent i will also check that too. But I was just wondering, isn't there something like a framework for this types of jobs?. Again, thanks Ví

[google-appengine] tasks and queues in google app engine

2010-06-01 Thread Sandeep Arneja
How do i cancel a task / queue which has already been scheduled? What is the point of the task handler? -- 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-appeng...@googlegroups.com. To unsubscribe f

[google-appengine] Re: Updating Google App Engine datastore

2010-06-01 Thread Tristan
I haven't seen a framework that does data versioning like that.. but I haven't looked very hard as I rolled my own abstraction layer with the datastore... Here's an excerpt from some stuff I wrote a while back and never got around to publishing. It's a little outdated from what I do nowadays, but