You set up billing and set a quota. AppEngine then bills you for any reads
you use above the free quota.
On Friday, May 16, 2014 12:24:45 PM UTC-5, arame...@mysummitps.org wrote:
Hello,
I have an app engine app that is running on a free quota. The datastore
queries have been exceeded and
I just want to count results in a simple App Engine web page 'Data
Viewer' not in a python/java class. It runs a quick GQL query.
eg SELECT * FROM MyWords where bookname = 'book1' - is OK, but how to
count the results?
This does not work: select count (SELECT * FROM MyWords where bookname
=
Are you using Python or Java?
If Python you can write your result to list and use len(my_result).
But how to put result to list please read manual
--
You received this message because you are subscribed to the Google Groups
Google App Engine group.
To post to this group, send email to
What's wrong with using the count() method of the returned query set?
i.e.
words = db.GqlQuery(SELECT * FROM MyWords where bookname = 'book1')
if words.count() 5:
blah blah
Not the most efficient way if you're only interested in the count (and not
the results).
Phil
On 4 July 2011
On Mon, Jul 4, 2011 at 12:03 PM, Phil Young p...@philyoung.org.uk wrote:
if words.count() 5:
blah blah
if words.count(6) 5:
blah blah
A slightly more efficient count.
--
Branko Vukelić
bra...@herdhound.com
Lead Developer
Herd Hound (tm) - Travel that doesn't bite
Google IO 2010 had a good description of how to handle this very
problem. Have a look at the video and PDF for 'Building high-
throughput data pipelines with Google App Engine'
http://www.google.com/events/io/2010/sessions/high-throughput-data-pipelines-appengine.html
Dale
On Jan 23, 6:00 am,
There's an explanation of this exact problem, and a proposed solution
from 2010 Google IO, Building high-throughput data pipelines on
Google App Engine
http://www.google.com/events/io/2010/sessions/high-throughput-data-pipelines-appengine.html
You use task queue as part of a data pipeline. The
Yes, you can. The Mapper API has been designed for that kind of batch
processing, especially for the type where the large amount of
execution time is caused by the large amount of individual entities to
process (instead of long execution time for each of the entities).
I recommend having a look
Even with ten-minute background tasks, your datastore RPC calls are
still limited to 30 seconds. Also, if you're fetching a lot of
records and sending emails based on them, you might want to break it
up into smaller tasks anyway. Smaller chunks should also help you
handle failures in a more
Is it the fetch that is taking too long or the sending of the emails?
I cases where the jobs really do get too big (but see Ross' note), the
typical approach is to batch up the job and use task queues. For
example, you might have your task catch DeadlineExceeded (or whatever
Exception that is)
hello again,
one more thing: is it possible to reduce the amount of data that is
returned dramatically by doing all the aggregations (e.g. by grouping
and summing) completely within the datastore? currently i am
experimenting with doing full table scans (but i can only retrieve
1000 items in one
a little bit out of topic...but is xmpp on app engine availalbe for
google chat works without secure socket ( for flash -- which do not
support secure socket built in ) ??
On Apr 9, 7:36 pm, Ulrich mierendo...@googlemail.com wrote:
g3 insight wrote:
We are facing one problem when
Hi Jaap,
You don't need to do a query in order to get elements with a given name or
ID - just use MyModel.get_by_id, MyModel.get_by_key_name, or MyModel.get().
-Nick Johnson
On Mon, Sep 28, 2009 at 7:05 AM, Jaap jaap.hait...@gmail.com wrote:
Hi
My data has a unique ID for every record so I
I see,you assumed that each record of keywords contains only one word,right?
But there is no limit on how many words there can be in each record.
2009/7/5 Wooble geoffsp...@gmail.com:
If I was implementing this, I'd probably have an Entity with a
reference to the document and a list of
Do you really get me right?
Here is an example to get rid of the pain of abstraction.
If the document contains these words:'oracle', 'java', 'microsoft', 'ccna'
and then search these keywords respectively:
1.java
2.oracle
3.notmatch
then obviously,the 1st and 2nd search will match with the
If I was implementing this, I'd probably have an Entity with a
reference to the document and a list of keywords, so if I want the
list of keywords I just have it already. Clearly this is not how
you're storing your keywords, but you don't tell us how you are
storing them, just that they exist.
On Jul 3, 8:47 am, Mr Shore shore.cl...@gmail.com wrote:
By default we search a keyword against many documents.
But now I've restored 1M keywords in datastore,
I want to find out which of 1M keywords match a specified document.
Is there an efficient solution?
This depends entirely on
Hi,
If you are using Django framework,
request.POST.get('field_name') will give you the post value.
As to what to use to get the form in edit mode use,
editForm = UserProfileForm(instance=db.get(key))
To use in validation i.e postback,
postbackForm = UserProfileForm(data=request.POST)
I am using the app engine patch sample that uses django templates and
if you want to get values from a submitted form then you need to
create an instance of the form like this
class UserProfileForm(forms.Form):
wf_first_name = forms.CharField()
wf_last_name = forms.CharField()
Does there exists a way of accessing the submitted form fields without
creating an instance of the same like we do in non django based
project like self.request.get(fieldname)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
:-)
Can you set a default value?
first_name = self.request.get(first_name, default_value=)
--
Web Blue Screen of Death
http://pyoohtml.appspot.com/web-blue-screen-of-death
On Mar 22, 11:09 am, arnie parvez...@rediffmail.com wrote:
Will using value={{first_name}} inside the input tag cause
Will using value={{first_name}} inside the input tag cause any
problem when the same page is used for creating new entries instead of
editing as the whole html page is evaluated at the server before
rendering.
Thanks
Arnie
--~--~-~--~~~---~--~~
You received this
You can add hidden fields to your form that contain the data from the
previous forms.
And when the final form is accepted you create the user in the datastore.
2009/3/7 arnie parvez...@rediffmail.com:
It is still very confusing as I am not able to point out what to do
Let me explain my
It is still very confusing as I am not able to point out what to do
Let me explain my problem in more detail
I have to create a django template based web application that includes
a home page with a login section and a new user sign-up link. When a
new user visits the sight for the first time
Sure,
you can store anything in your datastore. I don't see why not.
I am also using the django framework.
Just set up your models and you should be good to go.
On Mar 4, 2:07 am, arnie parvez...@rediffmail.com wrote:
Sorry for some lack in complete explanation.
Basically I do not want to
arnie,
Specifically, if you want your users to use Google's account
credendials you can use the google.appengine.api module and check the
users class.
You can send non-logged in users to the Google Account login for your
application like this
users.create_login_url(self.request.uri))
This will
Sorry for some lack in complete explanation.
Basically I do not want to store the user session in my user datastore
table. The user table simply contains user info like first name, last
name, userid etc and user validation will be using this table. Also I
am using django framework.
yes, you are right, this is even better :)
Tx for the tip!
Constantin
On 26 Jan., 19:32, ryan ryanb+appeng...@google.com wrote:
agreed, that would definitely help prevent multiple created values.
using a guid generator would be even better.
having said that, paging on created properties
Its not strictly a gql limitation, but rather a datastore limitation.
http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Restrictions_on_Queries
If your 'date' property really is a date, and not a date+time, you
should be ok.
2009/1/20 lookon areyouloo...@gmail.com:
date is an datetime property...
I've read the article, does it mean that
SELECT * FROM Image WHERE date :yesterday
ORDER BY date, liked
will be OK?
On Tue, Jan 20, 2009 at 6:05 AM, Barry Hunter
barrybhun...@googlemail.comwrote:
Its not strictly a gql
I use
q.filter('date ',yesterday) .order(date).order(-liked)
it's ok..but the result confused me..
On Tue, Jan 20, 2009 at 6:15 AM, kang areyouloo...@gmail.com wrote:
date is an datetime property...
I've read the article, does it mean that
SELECT * FROM Image WHERE date :yesterday
On Jan 20, 6:05 am, Barry Hunter barrybhun...@googlemail.com
wrote:
Its not strictly a gql limitation, but rather a datastore limitation.
http://code.google.com/appengine/docs/python/datastore/queriesandinde...
correct. if you have both inequality filter(s) and sort order(s), the
first sort
2009/1/20 ryan:
On Jan 20, 6:05 am, Barry Hunter wrote:
If your 'date' property really is a date, and not a date+time, you
should be ok.
actually, this limitation is unrelated to property type. (hopefully
i'm just misunderstanding your point here...)
Ah, I was just saying if 'date' is
Then, how can I do the hot thing?
The image class has a datetime property 'date' and a int property 'liked'. I
need to get the images after yesterday and then order them by liked. Thanks.
On Tue, Jan 20, 2009 at 1:58 PM, ryan
ryanb+appeng...@google.comryanb%2bappeng...@google.com
wrote:
On
Thanks Barry, I thought about that but got scared off with the docs
recommendation not to use this for large sets. However, in reading
your post I realize my previous thinking about StringListProperty was
all wrong. If i create an extra field on the model and then stuff the
username + first_name
Hi Barry, I just gave it a go and it looks like it will work just
great except for the searching part. This is very bizarre at least to
me. I put it in my code and it's acting as below:
Created 3 records as below(note there are others in db but these 3 are
only ones with searchname property as
Hi Dave,
I found this link helpful
http://markmail.org/message/avigrrzi6ypyihvi
Alex
On Jan 17, 5:52 pm, Dave ddev...@gmail.com wrote:
Hi,
This is probably (hopefully!) simple and lack of caffeine has me
lost. I want to do a query such as:
select * from profile where (nickname =
Alex, that shows for = which does look like it will work with the stringlist.
However Dave is trying to use prefix matching, which looks a little
messy with stringlists. Reading the documetation again it notes the
strange behaviour with ordering. This is probably related, as read
about
You could expand the list to include the prefix combinations...
So ['dave','frost'], becomes
['d','da','dav','dave','f','fr','fro','fros','frost']
Then you can use '=' (and IN's) for your prefix OR filter.
But watch out for the exploding indexes, you should be ok with 3-4
words (50 items), a
You should be able to use the prefix match technique on a
StringListProperty.
Your searchname query does not need a custom index, so the dev server
doesn't define one in index.yaml. Every property for a kind gets an
automatic index of just that property's values for entities of that kind. A
On Sat, Jan 17, 2009 at 2:03 AM, arnie parvez...@rediffmail.com wrote:
Using a wsgi application and without using javascript is it possible
to calculate the latitude and longitude of a physical address using
Google Maps API?
Of course.
If yes then how?
See my code below.
I have
I beleive you should put the words into a StringListProperty. ie
'phil', 'gus', 'david' in case of record 3. and search on that field.
Disclaimer: untested - but that is now understand would do it.
2009/1/17 Dave ddev...@gmail.com:
Hi,
This is probably (hopefully!) simple and lack of
can you explain it? I'm not good at unicode...so I do not know how to deal
with foreign language...
On Fri, Dec 5, 2008 at 10:56 AM, @@ [EMAIL PROTECTED] wrote:
Hi you can do the word segmentation yourself, and put these words in a
StringListProperty.
On Fri, Dec 5, 2008 at 10:08 AM, kang
Hello: maybe it can help:
http://code.google.com/p/googleappengine/issues/detail?id=217
I use this as a temporary option while Search become better
On 1 dic, 21:18, kang [EMAIL PROTECTED] wrote:
anyone have experience in SearchableModel?
On Mon, Dec 1, 2008 at 3:10 PM, kang [EMAIL
Thanks...so there is no good solution for this problem now? I haven't seen
it in the roadmap...
On Fri, Dec 5, 2008 at 1:27 AM, tigrillo
[EMAIL PROTECTED] wrote:
Hello: maybe it can help:
http://code.google.com/p/googleappengine/issues/detail?id=217
I use this as a temporary option while
Hi you can do the word segmentation yourself, and put these words in a
StringListProperty.
On Fri, Dec 5, 2008 at 10:08 AM, kang [EMAIL PROTECTED] wrote:
Thanks...so there is no good solution for this problem now? I haven't seen
it in the roadmap...
The only reason I needed a Point property was for an economical
example case :-)
On Dec 3, 7:26 pm, ryan [EMAIL PROTECTED] wrote:
david's right, that article does describe how to extend db.Property.
if all you need is a point property, though, you should consider using
GeoPtProperty:
it does not work for foreign language...only english and it's not very
helpful
On Fri, Dec 5, 2008 at 10:32 AM, yu ping322 [EMAIL PROTECTED] wrote:
from google.appengine.ext import db
from google.appengine.ext import search
class Article(search.SearchableModel):
title =
On Thu, Dec 4, 2008 at 7:11 AM, TLH [EMAIL PROTECTED] wrote:
Consider the case where we have two (or more) properties that appear
in a number of classes, such as a Point class:
class Point(db.Model):
x = db.IntegerProperty()
y = db.IntegerProperty()
I want a Circle class to have the
Thank you for your reply is there any example code about full text
search with gae?
The source code of the SearchableModel is well documented and contains
examples of how to use it:
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/search/__init__.py
Also,
Thank you. I've got it...
and this post help:
http://www.johnborwick.com/blog/2008/10/27/appengine_django-basemodel-and-searchablemodel/
On Mon, Dec 1, 2008 at 12:24 PM, Alexander Kojevnikov
[EMAIL PROTECTED] wrote:
Thank you for your reply is there any example code about full text
anther question...I have some foreign language stored in the datastore...but
i can not search them...what can I do ?
On Mon, Dec 1, 2008 at 12:24 PM, Alexander Kojevnikov
[EMAIL PROTECTED] wrote:
Thank you for your reply is there any example code about full text
search with gae?
The
52 matches
Mail list logo