[google-appengine] Check chars limit before saving

2009-10-21 Thread Junal
I would like to check the chars limit (i.e not more than 140 chars) before i save the data. I'm using GAE default framework...i searched for this issue but didn't find any helpful solution. Could anybody help or give some example? Thanks in advance --~--~-~--~~~---~--~

[google-appengine] How does The Python datastore select the class for an entity (or: swapping classes through the datastore)?

2009-10-21 Thread Tonny
I ran into a fuzzy little thing today. I have to classes with the same name in different modules and both inherits from the Model class (let's call them x.A and y.A). I've created an instance of x.A (let's call it a1) and put it to the datastore, i then referenced the instance from an a.B entity (

[google-appengine] Re: datastore problem

2009-10-21 Thread Tonny
You need tread gently with updates to your models. When you are adding new properties, provide a default value. Cheers Tonny On 20 Okt., 06:28, Tim wrote: > first i create an entity of "note"(includes some fields), then i > deploy it to appengine, and add some record to it. > > but,  then i ch

[google-appengine] Re: 4Mb in datastore statistic = 2,4Gb in Stored Data Resource

2009-10-21 Thread Tonny
Thanks for the post. I had the same question (in a different post). Nice with a reply from a Google Engineer. On 20 Okt., 16:15, "Nick Johnson (Google)" wrote: > On Tue, Oct 20, 2009 at 3:11 PM, Michael wrote: > > > Is it possible to disable automatic indexes (on a single field), > > without di

[google-appengine] Re: Taskqueue not following my rate limit

2009-10-21 Thread David Symonds
On Tue, Oct 20, 2009 at 7:04 AM, Greg Tracy wrote: > queue: > - name: email-queue >  rate: 8/m >  bucket_size: 10 Do you understand the effect of the bucket_size parameter? I bet you probably want that to be 1 here. In short, imagine a bucket with apples in it. bucket_size controls the maximum

[google-appengine] Statistics Calculation

2009-10-21 Thread Phil
I have an application which displays on the statistics page a total number of entities of 1,646 however when I add up the total entities by Kind it only totals to 1,316. Can someone explain this 25% increase (or perhaps ~300 entities - my other applications are not showing their statistics so I ca

[google-appengine] Re: Taskqueue not following my rate limit

2009-10-21 Thread Prashant
hey Dave, i am still confused with the concept of bucket size. i want my task queue to execute only one task at a time with rate not more than 1 task/sec, what bucket size should i put and why? --~--~-~--~~~---~--~~ You received this message because you are subscri

[google-appengine] Static File Serving

2009-10-21 Thread stumpy
I am developing an application that targets the UK market and am looking at ways of improving the download speed of static files hosted on app engine such as .js, .css, .png etc. My testing suggests that app engine is serving all static content from america which adds significant latency. Downloa

[google-appengine] Re: How does The Python datastore select the class for an entity (or: swapping classes through the datastore)?

2009-10-21 Thread Nick Johnson (Google)
Hi Tonny, The SDK maintains a mapping between kind name and class. The kind name is determined by calling kind() on your class, and defaults to the (unqualified) name of the class. Because you have two classes with the same name in different modules, they both have the same kind name. The solution

[google-appengine] Re: Check chars limit before saving

2009-10-21 Thread ryan baldwin
If you're using python you can do one of two things: You can check the length of the incoming string by calling len() > if len(incoming_string) > 140: # do some stuff Or, if you don't care about truncation, you can always just splice the incoming string and not worry about it. > spliced =

[google-appengine] Re: Cannot add more apps to account

2009-10-21 Thread Wooble
If it was an intentional limitation, it would affect more than a handful of people using a Google Apps account that's also a Google account. On Oct 20, 9:11 pm, Andrew Chilton wrote: > 2009/10/21 Tino : > > > Hey, Google, please fix that.  This is serious, as it seems several > > users have a si

[google-appengine] Does Gdata Python Client ProgrammaticLogin works in a Google App Engine Task?

2009-10-21 Thread Michelschr
Hello everyone, I want to access one (and only one) spreadsheet of a user from within a task of a google app engine application. This code works in a normal request but not in a task:     client = gdata.spreadsheet.service.SpreadsheetsService()     gdata.alt.appengine.run_on_appengine(client)  

[google-appengine] Business Intelligence on data

2009-10-21 Thread Chris
Is there a good resource or examples on conducting business intelligence on your data stored in appengine? I have a large data set that I want to query and output reports such as: -Word clouds -Historical trends in data added -On demand queries. Any ideas on good resources I could use? I am hear

[google-appengine] Re: Cannot add more apps to account

2009-10-21 Thread ephemeron
This is the exact issue I'm having. Help us google! Thanks, -Ian On Oct 20, 7:32 pm, Tino wrote: > Hey, Google, please fix that.  This is serious, as it seems several > users have a similar problem! > > After registering your first application using your Google apps for > domain account, you h

[google-appengine] Datastore: batch delete taking a long time

2009-10-21 Thread Jarrod
For a batch delete of about 10-20 entities (with about 5 properties, most unindexed), I'm seeing very slow API call times. Even around 2000ms. The logs indicate this as a potential quota warning. I'm running the delete in one batch call, from a key only query of about 10-20 entities. Is this API

[google-appengine] Re: Clean way to code around timeouts?

2009-10-21 Thread Robin B
You are absolutely correct that the code is not handling db.Timeout exceptions correctly. When I wrote the recipe, I could not simulate Timeouts on the production datastore, so I wrote some code to randomly raise db.Timeouts and tested that the exponential backoff worked well. Today, after load

[google-appengine] Re: Datastore statistics not available

2009-10-21 Thread Jeff S (Google)
Hi nasim, I'm wondering if the issue is that the datastore stats for this app would require more space than is currently supported (100KB) http://code.google.com/appengine/kb/adminconsole.html#datastore_stats We're currently investigating this issue and we might be raising the stats size limit or

[google-appengine] Re: Datastore timeouts

2009-10-21 Thread Jeff S (Google)
Hi Michael, One possible cause could be that a Bigtable tablet which is used by your app was in the process of being split, which can cause a short burst of timeouts but ensure better performance going forward. Were these timeouts on just writes or also reads? Thank you, Jeff On Tue, Oct 20, 200

[google-appengine] db.allocate_ids

2009-10-21 Thread ryan baldwin
How long are id's reserved for when using db.allocate_ids? Forever? 60 seconds? Until I eat all of my dinner including my vegetables? Thanks. - ryan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine

[google-appengine] Re: Datastore timeouts

2009-10-21 Thread Michael
Timeouts were on writes (as far as i could tell looking at logs), the problem lasted for several minutes and i had time to post :) On Oct 21, 11:37 pm, "Jeff S (Google)" wrote: > Hi Michael, > One possible cause could be that a Bigtable tablet which is used by your app > was in the process of be

[google-appengine] Re: Clean way to code around timeouts?

2009-10-21 Thread johntray
Great -- we'll definitely include the update in our next production server push (this weekend) and I'll report back next week. Thanks, john On Oct 21, 2:50 pm, Robin B wrote: > You are absolutely correct that the code is not handling db.Timeout > exceptions correctly.  When I wrote the recipe

[google-appengine] Support for billing enabled application

2009-10-21 Thread Raviv Pavel
Does Google provide email or phone support for application with billing enabled? We're considering running a large scale application used by paying customers and need to know there is someone to talk to, other than posting in the groups. Also, Is there an SLA ? Thanks, Raviv Pavel VP of R&D Gigya

[google-appengine] Transactions and shraded counters

2009-10-21 Thread Ori
I've got this simple model, which consists several properties (like 3-4), and several counters (about 5-6) a. The counters are being updated rapidly b. I need them to be updated in one transaction (to be persistent, avoid collisions and unexpected behavior) I saw the article about shraded counter

[google-appengine] Re: Add Domain does not work

2009-10-21 Thread skyleecm
hi lordjoe, your domain www.lordjoe.com is not a CNAME record. Cheemeng On Oct 21, 10:48 am, lordjoe wrote: > No - I am signed up for Google Apps and have already mapped one > domain > > The issue is that the domain appears on my dashboars along with the > AppSpot.com domain - > it just does n

[google-appengine] Cannot alter a property using the console/dashboard 'data viewer'

2009-10-21 Thread Kyle Jensen
Recently, without any relevant code changing, we're unable to use the 'data viewer' to manually alter a particular StringProperty on a model. (I noticed I can alter a different StringProperty on the same model.) This seems *really* weird to me. The strings are long, but only 50-100 characters.

[google-appengine] Tragedy of the Commons, and Cold Starts

2009-10-21 Thread Devel63
I fear we are in a destructive cycle: - Cold starts take a long time (many seconds) - So app developers set up auto-pings to keep their app warm - So Google gets more aggressive in cycling out instances - So app developers increase their ping frequency - So even popular apps constantly h

[google-appengine] Re: Add Domain does not work

2009-10-21 Thread lordjoe
What is it? *.www.lordjoe.com redirects to ghs.google.com exactlyh like *.www.erlananderson.com which works On Oct 21, 7:17 pm, skyleecm wrote: > hilordjoe, > > your domainwww.lordjoe.comis not a CNAME record. > > Cheemeng ...> --~--~-~--~~~---~--~~ You received

[google-appengine] remoteAPI and taskqueue - all tasks with ETA 60 mins?!?

2009-10-21 Thread Scott Ellis
Hi All, I just queued up a bunch of tasks using the remote API and it's new taskqueue feature - and all the tasks showed up in the admin console with an ETA of just under 60 mins... In case it's relevant, i'm in Australia (AEST timezone). Just wondering if there's any good reason for this. If not

[google-appengine] Re: How does The Python datastore select the class for an entity (or: swapping classes through the datastore)?

2009-10-21 Thread Tonny
Thank you or the reply. This is great news - if I understood it correctly it means moving model classes to new modules is possible (redesign/cleanups). What i don't understand is how GAE searches for the actual class, given that it only has an unqualified name. Does it iterate all modules in the