[google-appengine] Re: Whoa!! What happened to cron?

2009-05-01 Thread 风笑雪
You can check the logs and make sure it runs every seconds.
I think you may just has a loop in your script that looks always running.

2009/5/1 MajorProgamming 

>
> I don't know if it's only happening by me but my crons are running
> every second!!!
>
> Here is a copy of my cron.yaml:
> cron:
> - description: send at night
>  url: /cron/night
>  schedule: every sun,mon,tue,wed,thu,fri of apr,may,jun 1:30
> - description: send by day
>  url: /cron/day
>  schedule: every sun,mon,tue,wed,thu,fri of apr,may,jun 15:30
>
> But it's currently generating constant requests! Help!
> >
>

--~--~-~--~~~---~--~~
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: Still no full-text search? Mystified by the priorities.

2009-05-01 Thread Ian Lewis
This is also not currently working on deployed appengine.

On Fri, May 1, 2009 at 5:44 AM, Waldemar Kornewald wrote:

>
> On Apr 30, 10:27 pm, dalenewman  wrote:
> > Looks like the java community already has this search business all
> > figured out :-)
> >
> > http://www.kimchy.org/searchable-google-appengine-with-compass/
> >
> > I guess this Compass thing must use Lucene and store the Lucene
> > indexes in the GAE data store.  Reminder; this is a guess based on a
> > quick skim of the blog post (link above).
> >
> > Only time will tell if this works out.
>
> I highly doubt that the index can be updated efficiently in a single
> request. This might work for a handful entities on the local
> development server, but I'm sure it'll quickly break down if you have
> a few 100 or 1000 items. Otherwise, if it were that trivial Google
> could've provided that feature a long time ago.
>
> I could imagine that if you used a script to remotely update the
> search index you could actually get acceptable search performance
> (i.e., on the already-built index), but I don't have any hard numbers
> here and Shay Banon didn't know if the port would perform well on App
> Engine, either.
>
> Bye,
> Waldemar Kornewald
> --
> Use Django on App Engine with app-engine-patch:
> http://code.google.com/p/app-engine-patch/
> >
>


-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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: Index "serving" not true

2009-05-01 Thread David Symonds

On Wed, Apr 29, 2009 at 2:21 PM, Santiago  wrote:

> I assumed the problem was that there was no index built for the query
> so I manually updated the index.yaml file and uploaded it.

You assume wrong. You get a very specific exception thrown when you
are missing an index. The problem here is that your request handler is
taking too long.


Dave.

--~--~-~--~~~---~--~~
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: Question about exploding index sizes

2009-05-01 Thread Nick Johnson (Google)

On Fri, May 1, 2009 at 7:24 AM, Morten Bek Ditlevsen
 wrote:
>
> Hi Nick,
>
>> >
>> > Just to make sure I understand this right (well, rather - I don't think
>> > I
>> > get it 100%):
>> >
>> > By the inverted index entity you mean a new entity kind where I store
>> > word
>> > lists and then reference this entity from my 'user profile' entity?
>>
>> Yes. The list of words used for fulltext indexing is called an 'inverted
>> index'.
>>
>> >
>> > This will allow me to create a query that fetches a list of entities for
>> > which I can find the referring 'user profile' entities.
>> >
>> > But how can I combine that result with other queries?
>>
>> You need a (fairly simple) query planner, that can decide to either
>> perform a text or bounding box query, then filter (in user code) the
>> results for those that match the other filter. You decide which to
>> pick based on which you think will have the fewest results (for
>> example, a query for a small area will take preference over a search
>> for the string 'friendly', whilst a search for the string 'solipsist'
>> should probably be used instead of a query for all but the tiniest
>> areas).
>
> Ah, I see! Thanks, that's just great!
> I must say that app engine programming is by far the most fun I've had in
> programming for a long time - the possibilities and constraints really have
> to make you think differently when solving problems!
>
>>
>> > The same goes for the hybrid example. I see how this can be used to give
>> > me
>> > a subset, but can that subset be queried any further?
>>
>> In that case, you can (hopefully) assume that the number of results
>> for your keywords in your geographical area is small enough that you
>> can filter them manually, without the need for explicit query
>> planning. You can also use 2 or more levels of geographical nesting -
>> just fewer than your main index, to keep the index entry count under
>> control.
>
> Great! Sounds like both solutions would be interesting to try out.
>
>
> I have a related question about a different way of solving part of this
> problem:
>
> Let's imagine that I have an entity that just contains a single word. Then I
> have a 'many-to-many' entity that references both the word-entity and my
> existing 'user profile' entity.
>
> Is the query for a word, followed by a subsequent .manytomany_set reference
> query expensive to do, or is that completely feasible?

The autogenerated _set properties, as you mention below, simply return
queries, so it's exactly the same as doing two queries. Whether that's
acceptable is up to you. Personally, I would either use lists, or do a
one-to-many with entities representing an occurrence of a word in a
particular document. There's little real benefit in having abstract
'word' entities and a many-to-many.

>
> What if I extended the many-to-many entity with (say) one geobox string? I
> understand that the _set operator returns me a query. Then I could run a
> filter on that query before fetching.

Absolutely. Since you'll be doing one equality filter (for the word)
and an inequality, that'll work fine.

>
> My question is: are there any restrictions/penalties for creating the *_set
> queries?

Nope, it's all just syntactic sugar.
>
>
> Thanks for your help!
> Sincerely,
> /morten
>
>
> >
>



-- 
Nick Johnson 
Bigtable SRE [http://labs.google.com/papers/bigtable.html]
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047
Gordon House, Barrow Street, Dublin 4, Ireland

--~--~-~--~~~---~--~~
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: Index "serving" not true

2009-05-01 Thread Nick Johnson (Google)

On Fri, May 1, 2009 at 11:53 AM, David Symonds  wrote:
>
> On Wed, Apr 29, 2009 at 2:21 PM, Santiago  wrote:
>
>> I assumed the problem was that there was no index built for the query
>> so I manually updated the index.yaml file and uploaded it.
>
> You assume wrong. You get a very specific exception thrown when you
> are missing an index. The problem here is that your request handler is
> taking too long.

Actually, the exception he's getting here is a datastore timeout,
which indicates the datastore operation took too long. This should
only happen occasionally, though, and generally due to factors outside
your control.

Are you getting this consistently for the query in question, or only
occasionally? If occasionally, about how often?

-Nick Johnson

--~--~-~--~~~---~--~~
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: Google Developer assistance needed for two issues

2009-05-01 Thread Carlos Pero

Hi Jason,

Thanks for the reply on behalf of Google.  It appears you are on the
scene now giving assistance to others, so I'll certainly take you up
on it next time I encounter a problem.

In retrospect, in case my messages above didn't make it clear enough,
I think everything would have been fine had I not accidently run an
update during the deletion (of the exact same indexes).  This caused
the indexes to immediately go from "Deleting" to "Error", and there
they stayed no matter how many more times I ran a vacuum.  Deleting
the entities allowed the next vacuum to put the indexes into
"Deleting" state, which proceeded normally and swiftly.

Best regards,
-Carlos


--~--~-~--~~~---~--~~
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] filter by id, as in key().id()

2009-05-01 Thread Dave

First let me say I read everything I can find but not sure I'm
understand. This seems like a no brainer so I'm confused. My desire is
to filter by numeric id. The reason is I want to use ID's in URL's vs.
Key's.

So I have models:

class User:
   blah, blah, blah

class Album:
   user = db.ReferenceProperty(User)

then in views I can successfully do:

queryset = get_list_or_404(Album, 'user =', db.Key(key))

where key is key ie. agxteWJsaW5kcmViZWxyCgsSBFVzZXIYAgw

What I''m looking for would be something like.

queryset = get_list_or_404(Album, ''user.id =',db.Key(key))

where key is key.id i.e. 14, 283, 1004, etc.

Is it really true this can't be done? What am I missing?
--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread Nick Johnson (Google)

Hi Dave,

You have two options here: Construct a Key object from the ID and kind, like so:

db.Key.from_path('Album', id)

or you can use the convenience method get_by_id on a Model class:

Album.get_by_id(id).

-Nick Johnson

--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread Dave

Wow, thx for the super fast respone Nick. You're the best.

So I am probably still confused. I tried the following:

queryset = get_list_or_404(Album, 'user =',db.Key.from_path
('User',key))
where key = 2. I get "Names may not begin with a digit; received %s.'
% id_or_name)"

This leads be to beleive it's trying to pull a key_name vs. an ID.

I'm not sure how to use the get_by_id since I'm looking to filter by a
reference property of User within the Album model that points to User.
It seems Album.get_by_id would return a single album record. I'm
looking to get all Albums for a specific user.

thx,


On May 1, 9:03 am, "Nick Johnson (Google)" 
wrote:
> Hi Dave,
>
> You have two options here: Construct a Key object from the ID and kind, like 
> so:
>
> db.Key.from_path('Album', id)
>
> or you can use the convenience method get_by_id on a Model class:
>
> Album.get_by_id(id).
>
> -Nick Johnson
--~--~-~--~~~---~--~~
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: Some design Issues in appengine datastore

2009-05-01 Thread Ted

> 1#
class Food(db.Model):
category = db.StringListProperty()
[other properties]

apple = Food(category=['fruit','red','iron','apple'])
greenfruit = Food(category=['fruit','green'])
veg3 = Food(category=
['vegetable','category1','category2','category3'])

If you query category='fruit', you'll get both apple and greenfruit.

> 2#
Try to use auto-completion provided by some Ajax libraries like YUI.

> 3#
Do you mean XMPP and Jaiku, see 
http://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imified/


--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread 'Αλκης Ευλογημένος
What you want to do is:

albums = Album.all().filter('user =', aUser).fetch(1000)

aUser can be a key to a user or a user entity.

On Fri, May 1, 2009 at 3:19 PM, Dave  wrote:

>
> Wow, thx for the super fast respone Nick. You're the best.
>
> So I am probably still confused. I tried the following:
>
> queryset = get_list_or_404(Album, 'user =',db.Key.from_path
> ('User',key))
> where key = 2. I get "Names may not begin with a digit; received %s.'
> % id_or_name)"
>
> This leads be to beleive it's trying to pull a key_name vs. an ID.
>
> I'm not sure how to use the get_by_id since I'm looking to filter by a
> reference property of User within the Album model that points to User.
> It seems Album.get_by_id would return a single album record. I'm
> looking to get all Albums for a specific user.
>
> thx,
>
>
> On May 1, 9:03 am, "Nick Johnson (Google)" 
> wrote:
> > Hi Dave,
> >
> > You have two options here: Construct a Key object from the ID and kind,
> like so:
> >
> > db.Key.from_path('Album', id)
> >
> > or you can use the convenience method get_by_id on a Model class:
> >
> > Album.get_by_id(id).
> >
> > -Nick Johnson
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread Dave

Thx Alkis, I'm familiar with this format but really trying to retain
use of get_list_or_404() functionality. Also are you saying this would
work for numeric ID? What i've got is ID from .key().id() not an
actual User object or .key(). I'm specifically trying not to use Key
().



On May 1, 9:28 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> What you want to do is:
>
> albums = Album.all().filter('user =', aUser).fetch(1000)
>
> aUser can be a key to a user or a user entity.
>
>
>
> On Fri, May 1, 2009 at 3:19 PM, Dave  wrote:
>
> > Wow, thx for the super fast respone Nick. You're the best.
>
> > So I am probably still confused. I tried the following:
>
> > queryset = get_list_or_404(Album, 'user =',db.Key.from_path
> > ('User',key))
> > where key = 2. I get "Names may not begin with a digit; received %s.'
> > % id_or_name)"
>
> > This leads be to beleive it's trying to pull a key_name vs. an ID.
>
> > I'm not sure how to use the get_by_id since I'm looking to filter by a
> > reference property of User within the Album model that points to User.
> > It seems Album.get_by_id would return a single album record. I'm
> > looking to get all Albums for a specific user.
>
> > thx,
>
> > On May 1, 9:03 am, "Nick Johnson (Google)" 
> > wrote:
> > > Hi Dave,
>
> > > You have two options here: Construct a Key object from the ID and kind,
> > like so:
>
> > > db.Key.from_path('Album', id)
>
> > > or you can use the convenience method get_by_id on a Model class:
>
> > > Album.get_by_id(id).
>
> > > -Nick Johnson
>
> --
>
> Alkis
--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread Nick Johnson (Google)

On Fri, May 1, 2009 at 2:19 PM, Dave  wrote:
>
> Wow, thx for the super fast respone Nick. You're the best.
>
> So I am probably still confused. I tried the following:
>
> queryset = get_list_or_404(Album, 'user =',db.Key.from_path
> ('User',key))
> where key = 2. I get "Names may not begin with a digit; received %s.'
> % id_or_name)"
>
> This leads be to beleive it's trying to pull a key_name vs. an ID.

This will be the case if you got 'key' straight from a query parameter
- it's a numeric string, rather than a number. Cast it to a number
with int() and you should be fine.

> I'm not sure how to use the get_by_id since I'm looking to filter by a
> reference property of User within the Album model that points to User.
> It seems Album.get_by_id would return a single album record. I'm
> looking to get all Albums for a specific user.

Ah, I see. My mistake. :)

>
> thx,
>
>
> On May 1, 9:03 am, "Nick Johnson (Google)" 
> wrote:
>> Hi Dave,
>>
>> You have two options here: Construct a Key object from the ID and kind, like 
>> so:
>>
>> db.Key.from_path('Album', id)
>>
>> or you can use the convenience method get_by_id on a Model class:
>>
>> Album.get_by_id(id).
>>
>> -Nick Johnson
> >
>

--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread Dave

Nick, once again YOU are my HERO!! THX so much!

For the help of others who may need this I summarize:

if passing numeric ID's in URLs(i.e. from key().id() or django
request.user.key.id) to query with filters do as below:

.filter('user =', db.Key.from_path('your model',int(numeric key))

Once again, thx so much!

Dave

On May 1, 9:47 am, "Nick Johnson (Google)" 
wrote:
> On Fri, May 1, 2009 at 2:19 PM, Dave  wrote:
>
> > Wow, thx for the super fast respone Nick. You're the best.
>
> > So I am probably still confused. I tried the following:
>
> > queryset = get_list_or_404(Album, 'user =',db.Key.from_path
> > ('User',key))
> > where key = 2. I get "Names may not begin with a digit; received %s.'
> > % id_or_name)"
>
> > This leads be to beleive it's trying to pull a key_name vs. an ID.
>
> This will be the case if you got 'key' straight from a query parameter
> - it's a numeric string, rather than a number. Cast it to a number
> with int() and you should be fine.
>
> > I'm not sure how to use the get_by_id since I'm looking to filter by a
> > reference property of User within the Album model that points to User.
> > It seems Album.get_by_id would return a single album record. I'm
> > looking to get all Albums for a specific user.
>
> Ah, I see. My mistake. :)
>
>
>
> > thx,
>
> > On May 1, 9:03 am, "Nick Johnson (Google)" 
> > wrote:
> >> Hi Dave,
>
> >> You have two options here: Construct a Key object from the ID and kind, 
> >> like so:
>
> >> db.Key.from_path('Album', id)
>
> >> or you can use the convenience method get_by_id on a Model class:
>
> >> Album.get_by_id(id).
>
> >> -Nick Johnson
>
>
--~--~-~--~~~---~--~~
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: Invalid runtime specified

2009-05-01 Thread Nick Johnson (Google)

Hi Luca,

This is the error you get if you have not yet been added to the Java
runtime preview. You won't be able to deploy a Java runtime app until
you are.

-Nick Johnson

--~--~-~--~~~---~--~~
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: filter by id, as in key().id()

2009-05-01 Thread 'Αλκης Ευλογημένος
As Nick pointed out you can make a key from an id: Key.from_path('User',
id).

2009/5/1 Dave 

>
> Thx Alkis, I'm familiar with this format but really trying to retain
> use of get_list_or_404() functionality. Also are you saying this would
> work for numeric ID? What i've got is ID from .key().id() not an
> actual User object or .key(). I'm specifically trying not to use Key
> ().
>
>
>
> On May 1, 9:28 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>  wrote:
> > What you want to do is:
> >
> > albums = Album.all().filter('user =', aUser).fetch(1000)
> >
> > aUser can be a key to a user or a user entity.
> >
> >
> >
> > On Fri, May 1, 2009 at 3:19 PM, Dave  wrote:
> >
> > > Wow, thx for the super fast respone Nick. You're the best.
> >
> > > So I am probably still confused. I tried the following:
> >
> > > queryset = get_list_or_404(Album, 'user =',db.Key.from_path
> > > ('User',key))
> > > where key = 2. I get "Names may not begin with a digit; received %s.'
> > > % id_or_name)"
> >
> > > This leads be to beleive it's trying to pull a key_name vs. an ID.
> >
> > > I'm not sure how to use the get_by_id since I'm looking to filter by a
> > > reference property of User within the Album model that points to User.
> > > It seems Album.get_by_id would return a single album record. I'm
> > > looking to get all Albums for a specific user.
> >
> > > thx,
> >
> > > On May 1, 9:03 am, "Nick Johnson (Google)" 
> > > wrote:
> > > > Hi Dave,
> >
> > > > You have two options here: Construct a Key object from the ID and
> kind,
> > > like so:
> >
> > > > db.Key.from_path('Album', id)
> >
> > > > or you can use the convenience method get_by_id on a Model class:
> >
> > > > Album.get_by_id(id).
> >
> > > > -Nick Johnson
> >
> > --
> >
> > Alkis
> >
>


-- 

Alkis

--~--~-~--~~~---~--~~
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: datastore timeout every time - on reads, not writes

2009-05-01 Thread Liang Zhao

I'm not sure, but it seems both

alerts = Alert.all().filter('expires >= ', datetime.datetime.now())

and

alerts = Alert.all().filter('expires >= ', datetime.datetime.now()).fetch(1000)

should be the same, since according to documents, app engine only
return the first 1000 records.

On Fri, May 1, 2009 at 1:36 PM, tayknight  wrote:
>
> I figured out that I needed to do a
> alerts = Alert.all().filter('expires >= ', datetime.datetime.now
> ()).fetch(1000)
>
> Apparently it is faster to do a fetch() than iterate over the values.
>
> On Apr 30, 7:28 pm, tayknight  wrote:
>> Data is returned in development almost instantly. In production, the
>> error is returned after about 4 seconds. I get the datastore error
>> long before 30 seconds.
>>
>> On Apr 29, 9:08 am, Liang Zhao  wrote:
>>
>> > Each request can only run 30 seconds in server side,
>>
>> > but in development server, there is no limitation on it...
>>
>> > On Wed, Apr 29, 2009 at 11:56 PM, tayknight  wrote:
>>
>> > > And, I should add, this works perfecty (and quickly) from the
>> > > development server's datastore.
>>
>> > > On Apr 29, 8:31 am, tayknight  wrote:
>> > >> I have a problem. I'm getting datastore timeouts when doing reads. The
>> > >> code finished about 5% of the time. The code looks like:
>>
>> > >> alerts = Alert.all().filter('expires >= ', datetime.datetime.now())
>> > >> # ge active alerts
>> > >> for alert in alerts:
>> > >>   #get the db.Keys from the ListProperty
>> > >>   zones = ZoneMaster.get(alert.zones)
>> > >>   for zone in zones:
>> > >>     if zone:
>> > >>       #get the users for this zone
>> > >>       if zone.siteusers:
>> > >>         us = SiteUser.get(zone.siteusers)
>> > >>           for u in us:
>> > >>             if u:
>> > >>               self.response.out.write(u.name + '')
>>
>> > >> The Model looks like:
>> > >> class Alert(db.Model):
>> > >>   effective = db.DateTimeProperty()
>> > >>   expires = db.DateTimeProperty()
>> > >>   zones = db.ListProperty(db.Key)
>>
>> > >> class ZoneMaster(db.Model):
>> > >>   siteusers = db.ListProperty(db.Key)
>>
>> > >> class SiteUser(db.Model):
>> > >>   name = db.StringProperty()
>> > >>   zone = db.ReferenceProperty(ZoneMaster)
>>
>> > >> This code is repeatably timing out with a "Timeout: datastore timeout:
>> > >> operation took too long." error.
>> > >> I'm not doing any writes. All the reads are by key (that come from a
>> > >> ListProperty). Why would this be timing out?
>>
>> > >> Thanks.
>>
>> > --
>>
>> > Cheers!
>>
>> > Liang Zhao- Hide quoted text -
>>
>> > - Show quoted text -
> >
>



-- 

Cheers!

Liang Zhao

--~--~-~--~~~---~--~~
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: Google App Engine use in Sub Saharan Africa

2009-05-01 Thread Bennomatic

It's hard to know for sure, but it looks to me like GAE apps are
served at least somewhat locally.

Trace to one of my apps from a server in AZ, US:
 1  64.34.162.131 (64.34.162.131)  0.718 ms  0.555 ms  0.527 ms
 2  1ge-gi2-22.wdc-sp2-cor-2.peer1.net (216.187.120.249)  0.779 ms
0.612 ms *
 3  10ge.xe-2-0-0.nyc-telx-dis-1.peer1.net (216.187.115.221)  5.898
ms  5.964 ms  5.845 ms
 4  64.34.44.126 (64.34.44.126)  197.317 ms  105.316 ms  5.974 ms
 5  72.14.239.46 (72.14.239.46)  6.514 ms  6.118 ms  6.157 ms
 6  *Icmp checksum is wrong
 209.85.249.11 (209.85.249.11)  8.402 msIcmp checksum is wrong
  8.161 ms
 7  209.85.248.75 (209.85.248.75)  19.720 ms 209.85.248.73
(209.85.248.73)  19.908 ms  19.617 ms
 8  * 209.85.254.233 (209.85.254.233)  19.654 ms 209.85.254.239
(209.85.254.239)  19.587 ms
 9  216.239.46.78 (216.239.46.78)  21.203 ms  28.852 ms  19.693 ms
10  * qw-in-f141.google.com (74.125.93.141)  19.799 ms  19.769 ms

>From a site in Austria:
 1  hq (213.235.199.19)  0.059 ms  0.028 ms  0.020 ms
 2  Ge2-1-c2.oe3.sil.at (86.59.127.153)  0.361 ms  0.398 ms  0.547 ms
 3  de-cix10.net.google.com (80.81.192.108)  23.925 ms  15.261 ms
15.568 ms
 4  209.85.255.172 (209.85.255.172)  15.713 ms 209.85.255.170
(209.85.255.170)  16.127 ms  16.015 ms
 5  72.14.232.201 (72.14.232.201)  15.810 ms  15.782 ms 72.14.232.165
(72.14.232.165)  16.033 ms
 6  209.85.250.46 (209.85.250.46)  21.511 ms  27.661 ms 72.14.232.194
(72.14.232.194)  27.695 ms
 7  fg-in-f141.google.com (72.14.221.141)  16.406 ms  15.992 ms
15.805 ms

And to the OP's question, one from South Africa:
 1  cisrb1-net109-64.posix.co.za (160.124.109.126)  0.185 ms  0.241
ms  0.224 ms
 2  cisldn1-cisrbc1.posix.co.za (160.124.1.2)  167.005 ms  166.704 ms
167.003 ms
 3  de-cix10.net.google.com (80.81.192.108)  178.228 ms  178.028 ms
178.479 ms
 4  209.85.255.172 (209.85.255.172)  178.583 ms 209.85.255.170
(209.85.255.170)  178.672 ms  178.861 ms
 5  72.14.232.208 (72.14.232.208)  192.585 ms 209.85.248.182
(209.85.248.182)  185.017 ms  185.251 ms
 6  72.14.232.130 (72.14.232.130)  189.842 ms  189.803 ms  191.241 ms
 7  209.85.251.231 (209.85.251.231)  189.712 ms 72.14.236.191
(72.14.236.191)  191.885 ms *
 8  * 209.85.243.81 (209.85.243.81)  199.829 ms 209.85.243.73
(209.85.243.73)  200.722 ms
 9  ww-in-f141.google.com (209.85.229.141)  190.988 ms  190.207 ms
190.185 ms

Note that, on this last one, the latency doesn't increase all that
significantly from the second hop all the way to the destination hop,
and the third hop is "de-cix10", which *might* mean that it's a
peering point in Germany.  The end-point is only 34ms further than
that, which implies to me that it's somewhere in Europe, though
interestingly enough, it's not the same one that's at the end of the
Austria trace.

For more detective work, check out the int'l traceroute sites at
http://www.traceroute.org.

-Bne


On Apr 30, 12:35 pm, Wooble  wrote:
> On Apr 30, 8:08 am, Martin  wrote:
>
> > 1. How stable is the availability of apps down in Sub Saharan Africa;
> > does Google have server-farms there, or is the traffic just routed to
> > data-center somewhere in the Middle East?
>
> I don't believe Google's going to reveal any information on server
> location, but my impression is that most of not all of the servers
> doing app engine serving now are in the US.  I could be completely
> wrong.
--~--~-~--~~~---~--~~
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: subdomain - www is not able to add for google appengine

2009-05-01 Thread tttttooooodddd ddddddvnek


also mine will hit www in chrome browser in windows but NOT from pcbsd 
to www. ???


--- On Tue, 4/28/09, toh  wrote:

> From: toh 
> Subject: [google-appengine] Re: subdomain - www is not able to add for google 
> appengine
> To: "Google App Engine" 
> Date: Tuesday, April 28, 2009, 2:00 AM
> Hi
> 
> I had the same experience about a year ago.  When I tried
> it again a
> couple of months ago, it just magically worked.
> 
> I know I am not helping you in any way, but now you know
> it's not just
> you...
> 
> On Apr 26, 4:12 am, VIJI 
> wrote:
> > Hello,
> >
> >      I tried to point towww.mydoman.comto google
> appengine
> > application.But the subdomain www is not getting added
> in the google
> > application service settings page.
> >
> >               If i try to add 'www' as
> subdomain ,there is no error
> > message or any response.Could you please help anyone
> regarding the
> > same?
> 
> 

  

--~--~-~--~~~---~--~~
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: Over Quota: Datastore Indices Count

2009-05-01 Thread Paul

Hi Jeff,

I've opened a ticket on this issue to help with tracking.

http://code.google.com/p/googleappengine/issues/detail?id=1161

Please could you reset the quota on appid matchmatchy

Thanks,

Paul.



On Apr 16, 1:52 pm, "Jeff S (Google)"  wrote:
> Hi Fred and Jose,
>
> I've reset the index count for your apps, so the issue should be
> alleviated.
>
> John P,
>
> Could you post or email your app ID?
>
> Thank you,
>
> Jeff
>
> On Apr 14, 9:53 pm, johnP  wrote:
>
> > I have 54indices, and am getting a warning that am exceeding aquota.
>
> > johnP
>
> > On Apr 11, 8:20 pm, fedestabile  wrote:
>
> > > Same happen to me, and I just developing the application, I don't have
> > > any indexes defined
>
> > > My app ID is: myclimbs
>
> > > Thanks a lot!
> > > Fred
>
> > > On Mar 2, 5:08 am, Jose Florido  wrote:
>
> > > > Hi,
>
> > > > I also have the same message. I only use 50 indexes, so it's under the
> > > > limit.
> > > > The ID of my app is: museliusweb
>
> > > > thanks!
>
> > > > On 5 ene, 18:52, Marzia Niccolai  wrote:
>
> > > > > Hi,
>
> > > > > Thequotalimit is 100, but there is currently an issue where vacuumed
> > > > > indexes don't get credited back when vacuumed.  I have fixed this 
> > > > > issue with
> > > > > yourquotafor now.
>
> > > > > -Marzia
>
> > > > > On Sat, Jan 3, 2009 at 8:09 AM, dloomer  wrote:
>
> > > > > > Is the indexquotalimit actually 50?  I don't see that listed on my
> > > > > >QuotaDetails page or here:
> > > > > >http://code.google.com/appengine/articles/quotas.html.
>
> > > > > > Anyway, just today I started seeing that warning in my dashboard 
> > > > > > even
> > > > > > though I have only 45indices(no more than nine for any given entity
> > > > > > kind).  What's strange is, I had never seen this warning before in
> > > > > > spite of the fact that up until yesterday, when I did some cleanup, 
> > > > > > I
> > > > > > had 13 additionalindiceson top of the current 45.
>
> > > > > > Incidentally, late last night I was getting 500 server errors on the
> > > > > > index update portion of my deployments (no further details on the
> > > > > > nature of the error were given).
>
> > > > > > I haven't quite nailed down the security model of my app yet, so I
> > > > > > don't want to make the app ID public here -- I can provide that in a
> > > > > > private e-mail.
>
> > > > > > On Dec 20 2008, 1:40 am, paptimus  wrote:
> > > > > > > Hi, GAE team.
>
> > > > > > > I encountered "Your application is exceeding aquota:Datastore
> > > > > > >IndicesCount" on dashboard.
>
> > > > > > > The number of indeces is under 50, but one model has about 30 
> > > > > > > indeces.
> > > > > > > So I think this one is the point ofoverquotawarning and vacuumed
> > > > > > > these indeces.
> > > > > > > Vacuume_index was completed and there is no index of that model.
>
> > > > > > > But the warging ofoverquotaramainsover24 hours and the status of
> > > > > > > a new index remains "building".
>
> > > > > > > I hope you check my index and change the status to "Error" if my 
> > > > > > > index
> > > > > > > has problems, please.
>
> > > > > > > Thanks.
--~--~-~--~~~---~--~~
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: datastore timeout every time - on reads, not writes

2009-05-01 Thread Wooble



On May 1, 12:28 pm, Liang Zhao  wrote:
> I'm not sure, but it seems both
>
> alerts = Alert.all().filter('expires >= ', datetime.datetime.now())
>
> and
>
> alerts = Alert.all().filter('expires >= ', 
> datetime.datetime.now()).fetch(1000)
>
> should be the same, since according to documents, app engine only
> return the first 1000 records.

Fetching the records as a batch and then doing stuff with them is
faster than treating a db.Query object as an iterable.

On the other hand, fetch(1000) is fairly likely to get you a datastore
timeout, depending on your data.
--~--~-~--~~~---~--~~
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: Site down again..

2009-05-01 Thread bvelasquez

This is all I get when I try to access the dashboard.


Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this
error message and the query that caused it.

On May 1, 12:11 pm, bvelasquez  wrote:
> My sitehttp://www.tapingya.comis down again.  Server errors.  I
> cannot even reach the dashboard.  Anyone else in this situation?
>
> Barry
--~--~-~--~~~---~--~~
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] Site down again..

2009-05-01 Thread bvelasquez

My site http://www.tapingya.com is down again.  Server errors.  I
cannot even reach the dashboard.  Anyone else in this situation?

Barry
--~--~-~--~~~---~--~~
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: Site down again..

2009-05-01 Thread Paul Kinlan
http://code.google.com/status/appengine

I think they are having some issues, I am also seeing problems on the
datastore.  Shame really, I as I only launched paid accounts on my service
yesterday and now I am down.

Paul.

2009/5/1 bvelasquez 

>
> This is all I get when I try to access the dashboard.
>
>
> Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report your problem and mention this
> error message and the query that caused it.
>
> On May 1, 12:11 pm, bvelasquez  wrote:
> > My sitehttp://www.tapingya.comis down again.  Server errors.  I
> > cannot even reach the dashboard.  Anyone else in this situation?
> >
> > Barry
> >
>

--~--~-~--~~~---~--~~
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: Some design Issues in appengine datastore

2009-05-01 Thread adelevie

try reading http://bret.appspot.com/entry/how-friendfeed-uses-mysql

one pitfall to avoid is to rely on a recursive function to iterate
through a tree.

On May 1, 9:24 am, Ted  wrote:
> > 1#
>
> class Food(db.Model):
>     category = db.StringListProperty()
>     [other properties]
>
> apple = Food(category=['fruit','red','iron','apple'])
> greenfruit = Food(category=['fruit','green'])
> veg3 = Food(category=
> ['vegetable','category1','category2','category3'])
>
> If you query category='fruit', you'll get both apple and greenfruit.
>
> > 2#
>
> Try to use auto-completion provided by some Ajax libraries like YUI.
>
> > 3#
>
> Do you mean XMPP and Jaiku, 
> seehttp://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi...
--~--~-~--~~~---~--~~
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: Still no full-text search? Mystified by the priorities.

2009-05-01 Thread Waldemar Kornewald

Hi everyone,
if you're potentially interested in buying our search package, as
described above in this thread (http://tinyurl.com/dxen3z), please
take part in this short survey, primarily to help us find a fair
price:

http://www.surveymonkey.com/s.aspx?sm=CzIohuPfdcTL8z484vcX4Q_3d_3d

While there is not yet a demo site we hope that you can at least
provide an approximate estimate. Thanks a lot!

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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: I've reached my quota, only I have this great new name for my app

2009-05-01 Thread Jason (Google)
Hi Tim. I'm sorry, I misunderstood. Enabling billing does not allow you to
create more applications, but this is something we can do one-off, and I've
just done this for your account.

- Jason

On Wed, Apr 29, 2009 at 11:40 AM, Dag  wrote:

>
> Jason,
>  Thanks for the reply.
> This is probably still undecided within GOOG but it seems you are
> saying that if I enable billing for my applications, I will then get
> additional slots for applications.
> I would like to increase my max apps count to 20. Do I have to enable
> billing for all the apps or just one?
> How many new application slots do I get for each application I enable
> billing for?
>
> I think anyone who is committed to developing on this platform long-
> term will appreciate knowing how they can manage / increase their
> application number.
>
> Thanks!
> Tim
> thedagdae   'circle-at-or-a-sign gmail
> SanMateoWaveforms.com
>
> On Apr 28, 2:18 pm, "Jason (Google)"  wrote:
> > Hi Tim. Now that billing is an option, we are asking users to enable
> billing
> > for their applications. We granted selective quota increases in the past
> > because there was no other way for developers to get additional quota for
> > their apps. Billing provides this capability.
> >
> > - Jason
> >
> >
> >
> > On Sat, Apr 25, 2009 at 4:11 PM, Dag  wrote:
> >
> > > Hey Jeff,
> > >  A couple of weeks ago I asked you to up my quota as well and I
> > > haven't heard anything from you. I used the "Reply to author" link in
> > > this group. I never used that link before. Did you even get my
> > > request?
> > > Could you increase my quota as well? I have sample python websites
> > > that I want to duplicate in java.
> >
> > > Thanks!
> > > Tim
> > > SanMateoWaveforms.com
> >
> > > On Apr 25, 12:54 pm, Bennomatic  wrote:
> > > > Hi Jeff,
> >
> > > > Can you up my account limit, too?  I've got a bunch of projects in
> the
> > > > pipeline and even though I don't have deployments for all of my apps
> > > > yet, I could foresee needing 15 in the next few weeks.
> >
> > > > Thanks!
> >
> > > > On Apr 24, 11:04 am, "Jeff S (Google)"  wrote:
> >
> > > > > Hi Ted,
> >
> > > > > I've increased the max apps count to 20 for your account. Rather
> than
> > > just
> > > > > creating a new account we'd prefer if people ask for an increase
> :-)
> >
> > > > > Happy coding,
> >
> > > > > Jeff
> >
> > > > > On Fri, Apr 24, 2009 at 7:40 AM, Ted Gilchrist  >
> > > wrote:
> > > > > > Ok, I starred it. And added the following plaintive plea:
> >
> > > > > > I could do the tricky thing, and start creating new apps under a
> > > different email id.
> > > > > > But I'm a straight up Google fan boy, and I don't want to do you
> this
> > > way. Sigh, but
> >
> > > > > > if I must  For me, it's not about deleting the data. It's
> about
> > > thinking of
> > > > > > really cool new names for my apps, and not wanting to go off and
> > > register the
> > > > > > domains, etc. Hey, wait a minute. About allowing aliases for
> apps? Is
> > > that any
> >
> > > > > > easier? I just wanna use my new cool app name. Is that so wrong?
> >
> > > > > > On Fri, Apr 24, 2009 at 10:18 AM, T.J. Crowder <
> > > t...@crowdersoftware.com>wrote:
> >
> > > > > >> And you have starred this issue[1], right?
> >
> > > > > >> [1]
> http://code.google.com/p/googleappengine/issues/detail?id=335
> >
> > > > > >> I find it truly astonishing that there's no way to delete an
> > > > > >> application.  That's a v0.1 feature, full stop.
> > > > > >> --
> > > > > >> T.J. Crowder
> > > > > >> tj / crowder software / com
> > > > > >> Independent Software Engineer, consulting services available
> >
> > > > > >> On Apr 24, 2:26 pm, egilchri  wrote:
> > > > > >> > I've reached my quota of 10 apps, and I really want to either
> > > rename
> > > > > >> > one of them, or delete it, and then get back one for my quota.
> > > That
> > > > > >> > way, I'll be able to use this great new name for an app I
> have. I
> > > > > >> > realize I could register the domain, but I don't want to have
> to
> > > do
> > > > > >> > that, if possible.
> >
> > > > > >> > I know this question has been asked before, but are there any
> > > updates?
> >
> > > > > >> > Or, you could just raise my quota by one little bitty app.
> >
> > > > > >> > Thanks,
> >
> > > > > >> > Ted Gilchrist
> >
> > > > > > --
> > > > > > "Speech, not just for humans"
> >
> > > > > > VnoTed:http://vnoted.com
> >
>

--~--~-~--~~~---~--~~
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: Completely clearing the datastore

2009-05-01 Thread Jason (Google)
We're hoping to get key-only queries out in the next release.

- Jason

2009/4/26 Alkis Evlogimenos ('Αλκης Ευλογημένος) 

> The sample code does:
> MyModel.all().fetch(1000)
>
> This means fetch 1000 entities of MyModel. If each entity is 10kb this
> means 10MB of data read from datastore, 10MB of data sent through the
> network to your running instance and 10MB of data server from the running
> instance to your machine running the remote script.
>
> If you know the keys then you can do:
>
> db.delete([db.Key.from_path('MyModel', key_name) for key_name in
> one_thousand_key_names])
>
> This just sends the keys to the datastore for deletion. It doesn't need to
> transfer data from the datastore to the remote script to read the keys in
> the first place.
>
> Eventually GAE api should provide us some way of querying the datastore for
> keys only instead of getting entities necessarily. This would make this
> use-case quite a bit faster and a lot of others as well.
>
> 2009/4/26 Devel63 
>
>
>> Can you explain this further?  I don't see any reference to key_name
>> in the sample code.
>>
>> More importantly, to me, what's the cost differential between using
>> string representation of keys and key_names?  I've been passing around
>> key_names to the browser because they're shorter, under the assumption
>> that the cost to get the corresponding key on the server side was
>> negligible.
>>
>> On Apr 25, 9:02 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>>  wrote:
>> > Doing it over the remote api means you are going to transfer all your
>> data +
>> > transmission overhead over the wire. You are probably better off doing
>> > something like this on the server side through an admin protected
>> handler.
>> >
>> > Also if you happen to know the keys of your data (you used key_name)
>> your
>> > deletes are going to be a lot more efficient if you give db.delete a
>> list of
>> > keys instead.
>> >
>> >
>> >
>> > On Sat, Apr 25, 2009 at 2:41 PM, Sri  wrote:
>> >
>> > > Hi,
>> >
>> > >Is there a way to completely erase the production data store?
>> >
>> > > Currently I am using a script like this via the remote api:
>> >
>> > > def delete_all_objects(obj_class):
>> > >num_del = 300
>> > >while True:
>> > >try:
>> > >objs = obj_class.all().fetch(1000)
>> > >num_objs = len(objs)
>> > >if num_objs == 0:
>> > >return
>> > >print "Deleting %d/%d objects of class %s" % (num_del,
>> > > num_objs, str(obj_class))
>> > >db.delete(objs[:num_del])
>> > >except Timeout:
>> > >print "Timeout error - continuing ..."
>> >
>> > > But with 3 entities in the data store and another 3 million (yep
>> > > thats right) coming, doing a clear this way is extremely slow.
>> >
>> > > Any ideas?
>> >
>> > > cheers
>> > > Sri
>> >
>> > --
>> >
>> > Alkis
>>
>>
>
>
> --
>
> Alkis
>
> >
>

--~--~-~--~~~---~--~~
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] Seeking Developer

2009-05-01 Thread elsigh

Hey App Engine community,
I have an app written in CakePHP that would be a wonderful fit for
Google App Engine. I have loads of App Engine experience, but not
enough time to get this done in order to launch by June 1st.
The app is http://panelpicker.sxsw.com/
Please contact me (lsi...@commoner.com) if you're interested and
capable and have the time and want to chat more about this!
--~--~-~--~~~---~--~~
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: becoming an app administrator with google apps account

2009-05-01 Thread Jason (Google)
Hi Jon. I agree that it's confusing, and there are efforts underway to
address it, although I'm not sure how far along they are.

The issue is not that you can't use a Google Apps email address to
administer an application but that you can't use a Google Apps email address
to administer an application that is available to users outside of your
domain. If you application is not associated with any particular domain,
then I would recommend registering it with a Gmail address or some other
account not associated with a Google Apps domain.

- Jason

On Wed, Apr 29, 2009 at 10:25 PM, jhf555  wrote:

>
> This is sort of confusing and a bit of a pain (the difference between
> Google Apps accounts and general Google accounts).
> Unfortunately I do require users to log in to use certain parts of the
> app, so your suggestion won't work for me.
> I have a number of apps all administered under the same base email
> address, which makes things easier to administrate.  But it's really
> odd that we wouldn't be able to use the Google Apps email address as
> an admin address, especially since I think it's common to buy a domain
> name through Google Apps, and then build an App Engine app in that
> domain name.
> Can you see this being fixed up in the forseeable future?  I'm
> guessing not since it's probably complicated on Google's end.
> Thanks,
> Jon
>
> On Apr 22, 12:13 pm, "Jeff S (Google)"  wrote:
> > Hi Jon,
> >
> > Ah, I think I see the problem. Since this app accepts Google Accounts,
> but
> > not those from Google Apps, your Google Apps account will not be able to
> > sign in as an admin for this application.
> >
> > If you create a new application with login settings associated with
> > bigriddles.com then this account will be able to be an admin. Do users
> of
> > your app need to sign in, if not then I think this would be the simplest
> > solution.
> >
> > If I recall correctly, the second link takes you to
> > appengine.google.com/a/
> > which is the admin console you would need to use for a Google Apps
> account.
> >
> > Thank you,
> >
> > Jeff
> >
> > On Mon, Apr 20, 2009 at 7:56 PM, jhf555  wrote:
> >
> > > The settings for the app say:
> >
> > > "When this application was created it was configured to allow anyone
> > > with a valid Google Account to sign in if the Google Accounts API is
> > > used for authentication. A Google Account includes all Gmail Accounts,
> > > but does not include accounts on Google Apps domains."
> >
> > > When I click on the 2nd link in the email (as described above), I get
> > > to a page that says:
> >
> > > "Welcome to Google App Engine
> > > Before getting started, you want to learn more about developing and
> > > deploying applications.
> > > Learn more about Google App Engine by reading the Getting Started
> > > Guide, the FAQ, or the Developer's Guide."
> >
> > > And there's a button that says "Create an Application".
> >
> > > Another interesting thing about this page is that it says
> > > "i...@bigriddles.com" in the upper right nav (as if I'm signed in),
> > > but I think it's just is cueing off the url from the email since when
> > > I click on "My Account" in the upper-right nav, it takes me to a login
> > > page (as if I wasn't actually logged in).
> >
> > > Also, when I click the "Create an Application" button, it just asks me
> > > to start creating a new application (not what I want).
> >
> > > Thanks again,
> > > Jon
> >
> > > On Apr 20, 10:05 am, "Jeff S (Google)"  wrote:
> > > > Hi Jon,
> >
> > > > Could you try option 2 again? Also, what are the account settings you
> are
> > > > using for this app, I'm assuming it is associated with Google
> Accounts
> > > > instead of being restricted to a Google Apps domain.
> >
> > > > Thank you,
> >
> > > > Jeff
> >
> > > > On Sat, Apr 18, 2009 at 1:29 PM, jhf555  wrote:
> >
> > > > > I'm trying to send email on GAE with my Google Apps primary email
> as
> > > > > the "From" email address.
> > > > > So I need to add that email address (which is i...@bigriddles.com)
> as
> > > > > an Administrator for my app.
> > > > > However, I'm having trouble doing this.  I add that email as an
> > > > > adminstrator and receive the invite email, which offers two
> options,
> > > > > as follows:
> >
> > > > > 1. "sign in with your Google Account " - this doesn't work because
> > > > > even though i...@bigriddles.com is the admininstrator email for
> the
> > > > > Google Apps account, Google for some reason doesn't recognize this
> as
> > > > > a "Google Account".  So it gives me a "wrong username or password"
> > > > > error when I try to confirm the invitation by signing in with this.
> >
> > > > > 2. "if i...@bigriddles.com is a Google Apps Account, you can sign
> in
> > > > > and accept or decline this invitation here" - The problem here is
> that
> > > > > when I try to use this option, it asks for me to confirm the
> account
> > > > > with a cell phone number.  And of course I've already confirmed
> > > > > another account with 

[google-appengine] Re: Configuring SDK in Eclipse (Mac)

2009-05-01 Thread Jason (Google)
The SDKs for Python and Java are different, and the Google App Launcher only
ships with the Python SDK.

Have you tried using the Google Plugin for Eclipse? This includes the SDK
for Java and is pre-configured to use it.

http://code.google.com/eclipse

- Jason

On Mon, Apr 27, 2009 at 11:57 PM, dannyr  wrote:

>
>
> I'm trying to follow the following guide:
> http://code.google.com/eclipse/docs/creating_new_webapp.html.
>
> However, I'm having trouble configuring the location of the SDK for
> Google App Engine in Eclipse. I downloaded the Google App Launcher and
> tried using that but Eclipse won't recognize it.
>
> Is there anything I'm missing? Is this guide outdated?
>
> >
>

--~--~-~--~~~---~--~~
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: Erlang OTP?

2009-05-01 Thread Jason (Google)
Please file any feature requests in the public issue tracker at
http://code.google.com/p/googleappengine/issues/list.

Thanks,
- Jason

On Thu, Apr 30, 2009 at 5:16 AM, Kristofer  wrote:

>
>
> Is there any chance we can get a erlang-based version of GAE? I'm sure
> y'all (mother google) have plenty of erlang expertise within the
> virtual walls, and it'd be damn handy if we could host erlang apps in
> GAEespecially since you've figured out how to do the same with
> Java.
>
> cheers!
>
> >
>

--~--~-~--~~~---~--~~
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] Check Domain Availability

2009-05-01 Thread MajorProgamming

I'm looking for a way to check if a domain is available. Preferably to
run on Google AppEngine alone. But if not then something in plain
python that will work on my own pc.

Thanks,
--~--~-~--~~~---~--~~
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: I've reached my quota, only I have this great new name for my app

2009-05-01 Thread Dag

Thanks Jason.
Now I have no excuse. Got to get to work on those sample java apps!

-Tim

On May 1, 1:57 pm, "Jason (Google)"  wrote:
> Hi Tim. I'm sorry, I misunderstood. Enabling billing does not allow you to
> create more applications, but this is something we can do one-off, and I've
> just done this for your account.
>
> - Jason
>
>
>
> On Wed, Apr 29, 2009 at 11:40 AM, Dag  wrote:
>
> > Jason,
> >  Thanks for the reply.
> > This is probably still undecided within GOOG but it seems you are
> > saying that if I enable billing for my applications, I will then get
> > additional slots for applications.
> > I would like to increase my max apps count to 20. Do I have to enable
> > billing for all the apps or just one?
> > How many new application slots do I get for each application I enable
> > billing for?
>
> > I think anyone who is committed to developing on this platform long-
> > term will appreciate knowing how they can manage / increase their
> > application number.
>
> > Thanks!
> > Tim
> > thedagdae   'circle-at-or-a-sign gmail
> > SanMateoWaveforms.com
>
> > On Apr 28, 2:18 pm, "Jason (Google)"  wrote:
> > > Hi Tim. Now that billing is an option, we are asking users to enable
> > billing
> > > for their applications. We granted selective quota increases in the past
> > > because there was no other way for developers to get additional quota for
> > > their apps. Billing provides this capability.
>
> > > - Jason
>
> > > On Sat, Apr 25, 2009 at 4:11 PM, Dag  wrote:
>
> > > > Hey Jeff,
> > > >  A couple of weeks ago I asked you to up my quota as well and I
> > > > haven't heard anything from you. I used the "Reply to author" link in
> > > > this group. I never used that link before. Did you even get my
> > > > request?
> > > > Could you increase my quota as well? I have sample python websites
> > > > that I want to duplicate in java.
>
> > > > Thanks!
> > > > Tim
> > > > SanMateoWaveforms.com
>
> > > > On Apr 25, 12:54 pm, Bennomatic  wrote:
> > > > > Hi Jeff,
>
> > > > > Can you up my account limit, too?  I've got a bunch of projects in
> > the
> > > > > pipeline and even though I don't have deployments for all of my apps
> > > > > yet, I could foresee needing 15 in the next few weeks.
>
> > > > > Thanks!
>
> > > > > On Apr 24, 11:04 am, "Jeff S (Google)"  wrote:
>
> > > > > > Hi Ted,
>
> > > > > > I've increased the max apps count to 20 for your account. Rather
> > than
> > > > just
> > > > > > creating a new account we'd prefer if people ask for an increase
> > :-)
>
> > > > > > Happy coding,
>
> > > > > > Jeff
>
> > > > > > On Fri, Apr 24, 2009 at 7:40 AM, Ted Gilchrist 
> > > > wrote:
> > > > > > > Ok, I starred it. And added the following plaintive plea:
>
> > > > > > > I could do the tricky thing, and start creating new apps under a
> > > > different email id.
> > > > > > > But I'm a straight up Google fan boy, and I don't want to do you
> > this
> > > > way. Sigh, but
>
> > > > > > > if I must  For me, it's not about deleting the data. It's
> > about
> > > > thinking of
> > > > > > > really cool new names for my apps, and not wanting to go off and
> > > > register the
> > > > > > > domains, etc. Hey, wait a minute. About allowing aliases for
> > apps? Is
> > > > that any
>
> > > > > > > easier? I just wanna use my new cool app name. Is that so wrong?
>
> > > > > > > On Fri, Apr 24, 2009 at 10:18 AM, T.J. Crowder <
> > > > t...@crowdersoftware.com>wrote:
>
> > > > > > >> And you have starred this issue[1], right?
>
> > > > > > >> [1]
> >http://code.google.com/p/googleappengine/issues/detail?id=335
>
> > > > > > >> I find it truly astonishing that there's no way to delete an
> > > > > > >> application.  That's a v0.1 feature, full stop.
> > > > > > >> --
> > > > > > >> T.J. Crowder
> > > > > > >> tj / crowder software / com
> > > > > > >> Independent Software Engineer, consulting services available
>
> > > > > > >> On Apr 24, 2:26 pm, egilchri  wrote:
> > > > > > >> > I've reached my quota of 10 apps, and I really want to either
> > > > rename
> > > > > > >> > one of them, or delete it, and then get back one for my quota.
> > > > That
> > > > > > >> > way, I'll be able to use this great new name for an app I
> > have. I
> > > > > > >> > realize I could register the domain, but I don't want to have
> > to
> > > > do
> > > > > > >> > that, if possible.
>
> > > > > > >> > I know this question has been asked before, but are there any
> > > > updates?
>
> > > > > > >> > Or, you could just raise my quota by one little bitty app.
>
> > > > > > >> > Thanks,
>
> > > > > > >> > Ted Gilchrist
>
> > > > > > > --
> > > > > > > "Speech, not just for humans"
>
> > > > > > > VnoTed:http://vnoted.com
--~--~-~--~~~---~--~~
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...@googlegro

[google-appengine] best way to query geographical regions?

2009-05-01 Thread Matt

Hello,

I'm building a simple mapping app that needs to be able to query for
all points inside a box of points.

I noticed the mutiny library which has a technique for achieving this,
but it occurred to me to ask if there is perhaps a way to do it more
simply using GeoPtProperty properties.  The mutiny approach is linked
below:

http://code.google.com/p/mutiny/source/browse/trunk/geobox.py

Any advice on this would be much appreciated.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---