[google-appengine] What happens to requests in Instance Request Pending Queue when a backend instance gets terminated due to “Exceeded soft private memory limit”?

2017-06-28 Thread Ankur Choraywal

down votefavorite 


I have B* instances running on App Engine(Python env) to serve user facing 
requests. Sometimes I see B* instances getting terminated due to *Exceeded 
soft private memory limit*

I understand that increasing the instance class will solve the issue but I 
have few queries regarding requests that are present in the Instance 
Pending Queue !

Assume we have 2 instances of B* instance class and we call it let say => 
I-1, I-2

   1. 
   
   What will happen to those requests that are there in I-1 Instance 
   Request Pending Queue after the I-1 instance gets terminated due to some 
   reason? Will those requests gets evicted from the instance queue as this 
   instance got terminated ?
   2. 
   
   Will the requests in Instance Pending Queue are Dequeued from the 
   Instance Pending Queue for I-1 and will be put in I-2 Request Queue by the 
   Request scheduler as soon as Request Scheduler finds that I-1 is shutting 
   down due to some reason.
   
Any help regarding understanding these things will be highly appreciated !

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/560d2ca8-137f-4f94-8198-f8b90fb04f5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to server video content fast

2015-07-11 Thread Ankur Jatt
Hello Jim,
Yes you are write main time is spending in loading event. Currently I'm 
using html5's default video player. Could you please suggest me some good 
video players please. Or help me out in finding some good video play code 
etc.

On Saturday, July 4, 2015 at 9:11:25 PM UTC+5:30, Jim wrote:
>
> It looks like you're losing a half second in the response phase, which is 
> probably network transit time from the app engine server to Mumbai.  Last 
> time I checked the only options for specifying the region for deployment 
> with app engine were US and Europe.  Do you see that same ~500ms latency 
> hit on other types of content coming from the US?
>
> But your big hit is in the Load Event which I assume is where your video 
> player is loading.  What player are you using?  Could you get better 
> performance from another video player?  Could you pre-load the video player 
> while your user is busy doing something else so that he/she doesn't 
> experience the load time as a delay?
>
>
>
>
> On Friday, July 3, 2015 at 3:56:07 AM UTC-5, Ankur Jatt wrote:
>>
>> Hello Jim,
>> Well when I saw the response time from GAE than its same around from 
>> 15ms-80ms. ANd the response metrics I attached, plz have a look. The main 
>> thing is browser is taking too much time to parse content and, as you can 
>> see in attached file. But I'm unable to figure out how to solve this 
>> problem.
>>
>>
>> On Friday, July 3, 2015 at 12:51:22 AM UTC+5:30, Jim wrote:
>>>
>>> Ankur,
>>>
>>> I use that same basic approach to serve thousands of blobs per day in my 
>>> app, and the average response time in the app engine logs is 15ms.  The 
>>> blobs I'm serving are text data and they vary in size from a few hundred 
>>> bytes  to 1MB and larger.  The average size is probably around 200KB.  
>>>
>>> I wonder if anyone can comment on the possibility that the blobstore 
>>> service takes longer to serve video content than it does text content.  I 
>>> doubt it, but I suppose it is possible.
>>>
>>> Are you sure that the latency you're seeing is actually in app engine 
>>> and not perhaps in network transit or even in your browser while it loads a 
>>> viewer for that mp4 content?
>>>
>>> Jim
>>>
>>>
>>>
>>>
>>> On Thursday, July 2, 2015 at 11:25:23 AM UTC-5, Ankur Jatt wrote:
>>>>
>>>> Currently I'm using below class to serve videos:
>>>>
>>>> class VelfieVideoHandler(blobstore_handlers.BlobstoreDownloadHandler):
>>>>
>>>> def get(self, blobKey):
>>>> blobKey = BlobKey(blobKey)
>>>> blobinfo = blobstore.blobstore.BlobInfo(blobKey)
>>>> self.send_blob(blobKey,content_type="""video/mp4""")
>>>>
>>>> But the problem is: its taking atleast 2 seconds to response even 
>>>> though the video size is 100KB.
>>>> I test this code on 4Mbps speed and from Mumbai.
>>>>
>>>> How can I optimize it?
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a9ce519d-36fe-4d19-b1e9-2d2bd471%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Wrong data storage in GAE NDB

2015-07-09 Thread Ankur Jatt
Here is the situation
I have a model like

class Content(ndb.Model):
likeCount=ndb.IntegerProperty(default=0)
likeUser  = ndb.KeyProperty(kind=User, repeated=True)

When a new content generate than a new "Content" object is generated like

content_obj = Content(parent=objContentData.key, #Where ContentData is 
another ndb.Model subclass
 likeUser=[],
 likeCount=0
   )

And when any user like the same content than below function gets called

def modify_like(contentData_key, user_key):
like_obj = Content.query(parent=contetData_key).get()
if like_obj:
like_obj.likeUser.append(user_key)
like_obj.likeCount += 1
like_obj.put()

###Problem#
Now the problem is that when at the same time more than 4 user like the 
same content than this object write wrong data.
So how can I solve this problem

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/60f107b2-20a8-4bd2-8893-42cca742f0d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to server video content fast

2015-07-03 Thread Ankur Jatt
Hello Jim,
Well when I saw the response time from GAE than its same around from 
15ms-80ms. ANd the response metrics I attached, plz have a look. The main 
thing is browser is taking too much time to parse content and, as you can 
see in attached file. But I'm unable to figure out how to solve this 
problem.


On Friday, July 3, 2015 at 12:51:22 AM UTC+5:30, Jim wrote:
>
> Ankur,
>
> I use that same basic approach to serve thousands of blobs per day in my 
> app, and the average response time in the app engine logs is 15ms.  The 
> blobs I'm serving are text data and they vary in size from a few hundred 
> bytes  to 1MB and larger.  The average size is probably around 200KB.  
>
> I wonder if anyone can comment on the possibility that the blobstore 
> service takes longer to serve video content than it does text content.  I 
> doubt it, but I suppose it is possible.
>
> Are you sure that the latency you're seeing is actually in app engine and 
> not perhaps in network transit or even in your browser while it loads a 
> viewer for that mp4 content?
>
> Jim
>
>
>
>
> On Thursday, July 2, 2015 at 11:25:23 AM UTC-5, Ankur Jatt wrote:
>>
>> Currently I'm using below class to serve videos:
>>
>> class VelfieVideoHandler(blobstore_handlers.BlobstoreDownloadHandler):
>>
>> def get(self, blobKey):
>> blobKey = BlobKey(blobKey)
>> blobinfo = blobstore.blobstore.BlobInfo(blobKey)
>> self.send_blob(blobKey,content_type="""video/mp4""")
>>
>> But the problem is: its taking atleast 2 seconds to response even though 
>> the video size is 100KB.
>> I test this code on 4Mbps speed and from Mumbai.
>>
>> How can I optimize it?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7c42c3e8-4324-4aa2-9898-c79880d75843%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to server video content fast

2015-07-02 Thread Ankur Jatt
Currently I'm using below class to serve videos:

class VelfieVideoHandler(blobstore_handlers.BlobstoreDownloadHandler):

def get(self, blobKey):
blobKey = BlobKey(blobKey)
blobinfo = blobstore.blobstore.BlobInfo(blobKey)
self.send_blob(blobKey,content_type="""video/mp4""")

But the problem is: its taking atleast 2 seconds to response even though 
the video size is 100KB.
I test this code on 4Mbps speed and from Mumbai.

How can I optimize it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9c4047fc-c835-4d8b-a549-729aec6d8153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] XML parsing in GAE python

2011-09-08 Thread Ankur Deshwal
Hi all,

I am trying to send data to a GAE app in xml format via http POST
request. The GAE application is supposed to parse it.

Code handling POST request in GAE is

class Guestbook(webapp.RequestHandler):
  def post(self):
global val_list
guestbook_name = self.request.get('guestbook_name')
greeting = Greeting(parent=guestbook_key(guestbook_name))

sensor_val = self.request.get('content')
greeting.content = sensor_val
greeting.put()

Code for displaying parsed value on browser is

class MainPage(webapp.RequestHandler):
  def get(self):
self.response.out.write('')
guestbook_name=self.request.get('guestbook_name')

greetings = db.GqlQuery("SELECT * "
"FROM Greeting "
"WHERE ANCESTOR IS :1 "
"ORDER BY date DESC LIMIT 10",
guestbook_key(guestbook_name))
for greeting in greetings:
val = cgi.escape(greeting.content)
dom_val = minidom.parseString(val)
val_pretty = dom_val.toprettyxml()
self.response.out.write('%s'
%val_pretty)

The problem is, when I use a string directly in above code as
dom_val = minidom.parseString('example text')

The code parses the xml string successfully. However when I send the
string from a client application as


h = httplib2.Http()
form_fields = {
  'content': 'example text'
}
data = urllib.urlencode(form_fields)

resp, content = h.request('http://107.108.58.183:8080/sign',
'POST',
data ,
headers={'Content-Type': 'application/x-www-form-urlencoded'})

Following error happens while parsing

Traceback (most recent call last):
  File "/home/asd/google_app_engine/google_appengine/google/appengine/
ext/webapp/__init__.py", line 700, in __call__
handler.get(*groups)
  File "/home/asd/google_app_engine/projects/sensor_xml/
helloworld.py", line 44, in get
dom_val = minidom.parseString(val)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1924, in
parseString
return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in
parseString
return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in
parseString
parser.Parse(string, True)
ExpatError: not well-formed (invalid token): line 1, column 0


The string is received by GAE as I am able to print it by printing
variable var successfully. however parsing it as xml generates the
error.

Please 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] POST request to GAE through custom client

2011-08-11 Thread Ankur Deshwal
Hi,

I am new to web programming ( certainly to GAE ). I need have an
arrangement where I can update data from my custom C code and display
it on web. I found that HTTP POST is a good candidate to upload
"light" data.

I am trying to understand the GAE and web programming simultaneously
and have modified code available on net to try out the possibilities
for the same.

Here is the code for GAE.



class GetPage(webapp.RequestHandler):
def get(self):
self.response.out.write("""
  

 In Get 

  """)

class PostPage(webapp.RequestHandler):
def post(self):
self.response.out.write('In Post')
 
self.response.out.write(cgi.escape(self.request.get('content')))
self.response.out.write('')

application = webapp.WSGIApplication( [('/', GetPage),  ('/post',
PostPage)], debug=True)

def main():
run_wsgi_app(application)

if __name__ == "__main__":
main()


The client code (written in python for experimentation now, planning
to use libcurl for C later) which can send a Http POST request is here
-

h = httplib2.Http()
form_fields = {
  "content" : "Yippy!! POST works"
}
data = urllib.urlencode(form_fields)

resp, content = h.request('http://107.108.58.183:8080',  'POST',
data)


When I host the GAE code, I am able to process GET request ( able to
see the GetPage output ).
However, when I send a POST request via client, I see no output in
browser( which is obvious since browser did not send the POST
request). However, I see the local GAE server prints message
indicating it has received the POST request).

The question is- how can I display the data ( string "Yippy!! POST
works" here) on the web page when asked for from a browser?

I am newbie in the field and will highly appreciate any help.

Thanks,
Ankur

-- 
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: Is it possible to sell a CMS hosted on Google App Engine without the code being visible ?

2010-05-12 Thread Ankur Gupta
Thanks a lot for the answer. I guess it makes sense to go the Private
server route then.

Cheers
Ankur

On May 12, 8:19 pm, "Ikai L (Google)"  wrote:
> I'm going to preface this with a warning that I am not a lawyer, this is
> just my interpretation of the Terms of Service.
>
> It could be a possible violation:
>
> http://code.google.com/appengine/terms.html
>
> You may be in violation of this:
>
> 7.3. Unless Google has given you specific written permission to do so (e.g.,
> through an open source software license), you may not assign (or grant a
> sub-license of) your rights to use the Google App Engine Software, grant a
> security interest in or over your rights to use the Google App Engine
> Software, or otherwise transfer any part of your rights to use the Software.
>
> By providing a dashboard on top of Google App Engine, you may be, in effect,
> providing a sub-license.
>
> <http://code.google.com/appengine/terms.html>Is this scenario avoidable?
> That is, it is not a violation to sell your software to another person. If
> you're running Java, for instance, you can sell software in the form of JAR
> files (these can be decompiled, reverse engineered, etc). Alternatively, you
> can sell the software and provide the source, but license it so that it
> cannot be resold - most companies buying software with source don't go into
> the business of reselling it, and it gives them the flexibility of modifying
> it. Both of these scenarios are allowed by the ToS.
>
>
>
>
>
> On Wed, May 12, 2010 at 4:45 PM, Ankur Gupta  wrote:
> > Hi,
>
> > Assume someone wants to sell a custom CMS software that can run on
> > Google App Engine. However this person doesn't want to sell/give
> > access to the source code.
>
> > So now if someone put up a website and put the same Free Quota as GAE
> > offers and the same pricing as GAE offers. It will have it's own
> > registration process where in it will ask user the required domain
> > name etc. Finally the CMS will be hosted on GAE and user will be
> > provided with the dashboard access.
>
> > There is no desire to hide that this is hosted on Google App Engine.
>
> > My question is
>
> > a) Does this violate Google's Terms and conditions ?
> > b) Is it possible that once the access to the dashboard is provided
> > user can download the source code ?
>
> > Ankur
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> 
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe 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] Is it possible to sell a CMS hosted on Google App Engine without the code being visible ?

2010-05-12 Thread Ankur Gupta
Hi,

Assume someone wants to sell a custom CMS software that can run on
Google App Engine. However this person doesn't want to sell/give
access to the source code.

So now if someone put up a website and put the same Free Quota as GAE
offers and the same pricing as GAE offers. It will have it's own
registration process where in it will ask user the required domain
name etc. Finally the CMS will be hosted on GAE and user will be
provided with the dashboard access.

There is no desire to hide that this is hosted on Google App Engine.

My question is

a) Does this violate Google's Terms and conditions ?
b) Is it possible that once the access to the dashboard is provided
user can download the source code ?

Ankur

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe 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] Datastore related question - fetch random records

2010-05-05 Thread Ankur
Hello All,

I have a datastore related question. Here is the scenario:

* I am keeping a master table which has all the records and each
record has a unique id.
* For a given category (e.g.- male or female), I want to fetch N
random records from BigTable.

What are the ways to achieve this? I want true random numbers and not
in sequence. e.g. ids with 110,540,2111,6,4005,100 etc.

To make this problem a little bit more complex, I want to fetch N
random records for multiple categories. Few examples:

* Select N random records where category=male AND location=london
* Select N random records where category=female AND location=seattle
AND category=celebrity  (if the solution for this use case it complex,
then I can ignore it for the time being)

Any ideas from GAE community will be very helpful.

Thanks,
Ankur


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe 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] Comets on Google App Engine

2009-12-23 Thread Ankur (iVEC)
Is it possible to use Comets on Google App Engine when using Java?

e.g. using code similar to what is given here: 
http://tomcat.apache.org/tomcat-6.0-doc/aio.html

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe 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] Possible problem with Datastore

2009-08-12 Thread Ankur


Hello All,

I am facing some weird problem while doing some processing through
AppEngine's RemoteAPI. Here is the scenario:

* I have more 600k entries in a table in datastore. I am using a
sharded counter which gave me this count information.
* I am trying to iterate over ALL entries in my datastore using the
code snippet given below.
* What's happening is that this code is not reading ALL 600k entries
from the datastore. The loop finishes after 125k iterations! It should
have processed all 600k entries. But, the loop is finishing early. I
think the issue is with '__key__' field of AppEngine's Datastore.

Can any help me in debugging this problem?

Thanks,
Ankur




def download_data(my_datastore_table):
KIND = my_datastore_table
batchsize = 200
cnt = 0
num = 0

results = KIND.all().order('__key__').fetch(batchsize)
while results:
num_fetched = len(results)
last_key = results[-1].key()
try:
doSomethingWithResultsresults)
cnt = cnt + num_fetched
print "%s records processed" % cnt
except:
traceback.print_exc()

results = KIND.all().filter('__key__ >', last_key).order
('__key__').fetch(batchsize)


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

2009-06-04 Thread Ankur

Thankx nick...

i did it in batch of 25 entities at a time



i migrated using where clause in query

On Jun 4, 9:01 pm, "Nick Johnson (Google)" 
wrote:
> Hi Ankur,
>
> The easiest way to decrease your runtime is to decrease the number of round
> trips. .fetch() on a query only makes one roundtrip (instead of potentially
> many in the case of iterating over it), and you can accumulate results and
> put them in a single operation, like so:
>
> ---
> users = db.GqlQuery("SELECT * FROM UserProfile")
> updated = []
> for cur_user in users.fetch(100):
>   up = UserProfile1()
>   up.user = cur_user.user
>   up.fname = cur_user.name
>   up.lname = cur_user.lname
>   updated.append(up)
> db.put(up)
> ---
>
> Several caveats, though:
> - If you still have more records than can be processed in one request,
> you'll need to shard this and process a bit in each request.
> - Since you're not using key names or any other deduplication mechanism,
> running this multiple times will create multiple sets of UserProfile1
> records.
> - Since all the updates aren't in a single transaction (and indeed, can't
> be), your timed out attempts from earlier will have likewise created
> duplicates.
>
> You may be better considering how you can migrate your existing records
> rather than creating new ones. That way, you can determine if a record has
> been migrated when you retrieve it from the query, and only update it if it
> hasn't.
>
> -Nick Johnson
>
> On Thu, Jun 4, 2009 at 8:37 AM, Ankur  wrote:
>
> > hi,
>
> > I am using simple code to copy my database table data to another table
>
> > code used is
>
> >  users = db.GqlQuery("SELECT * FROM UserProfile")
>
> >    for cur_user in users:
> >      up=UserProfile1()
> >      up.user=cur_user.user
> >      up.fname=cur_user.name
> >      up.lname=cur_user.lname
> >      up.completed=bool()
> >      up.put()
>
> > my first table has 100 records only
>
> > but whenever i start back up process i always get timeout error.
>
> > Any idea how can i do 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] Timeout

2009-06-04 Thread Ankur

hi,

I am using simple code to copy my database table data to another table

code used is

 users = db.GqlQuery("SELECT * FROM UserProfile")

for cur_user in users:
  up=UserProfile1()
  up.user=cur_user.user
  up.fname=cur_user.name
  up.lname=cur_user.lname
  up.completed=bool()
  up.put()

my first table has 100 records only

but whenever i start back up process i always get timeout error.

Any idea how can i do 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] Fetch more than 1000 entries from Datastore

2009-05-18 Thread Ankur

Hello All,

I have 50,000 entries in Datastore and I am trying to analyze all
entries in the database. What is a good way to iterate over 50,000
entries? We can not use query.fetch(batch_size,offset) where offset >
1000. Due to some restrictions in Datastore, the maximum value of
offset is 1000.

Lots of people have asked similar question on this group but I
couldn't find a single working solution. Can one of the AppEngine
experts on this group help me on this matter?

Thanks,
Ankur




--~--~-~--~~~---~--~~
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] getting 403 error instead of 401

2009-03-31 Thread Ankur

Hi,

I uploaded my application and made my config file such that only admin
can access application as of now.

But when i use a account which is not admin for my application i am
getting 403 :forbidden error ,but i think it should be 401.

if i am trying the same in local dev server and login with "login as
administrator" check box unchecked. i get 401-you are not authorized
error.

Can any one have any idea why this is happening.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Anyone working on an Issue Tracker GAE application?

2008-11-14 Thread Ankur Gupta

do search on code.google.com for open source projects. I remember
seeing one. Also see if you can find one here 
http://code.google.com/search/#q=code%20review

Ankur

On Nov 14, 8:25 pm, Hernan <[EMAIL PROTECTED]> wrote:
> Please apologize if this is offtopic but searching for this is a bit
> difficult.
> Does anybody know a free open source Issue Tracker for GAE project?
> I'm looking for something very basic. Something like the one in Google
> Code.
> Even better if it's simpler.
> I would write my own but I'm pretty sure someone else must be working
> on this already.
>
> Regards,
> -Hernán.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Comprehensive list of open source appgine hosted projects

2008-11-14 Thread Ankur Gupta

I did copy all of them too. Thanks. Would be better to put up a wiki
of OSS GAE apps then a webpage. I will put it on a appspot based wiki.

Ankur

On Nov 14, 6:54 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> There's this list posted in the group too, you might want to cross
> reference it to see if you're missing any.
>
> http://groups.google.com/group/google-appengine/web/google-app-engine...
>
> On Nov 14, 4:41 am, Ankur Gupta <[EMAIL PROTECTED]> wrote:
>
> > Hi Guys,
>
> > I have compiled a list of approx 70 OSS hosted on app engine projects
> > here (found projects on github and code.google.com)
>
> >http://www.uptosomething.in/weblog/?page_id=355
>
> > Ankur Gupta
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Comprehensive list of open source appgine hosted projects

2008-11-14 Thread Ankur Gupta

Hi Guys,

I have compiled a list of approx 70 OSS hosted on app engine projects
here (found projects on github and code.google.com)

http://www.uptosomething.in/weblog/?page_id=355

Ankur Gupta



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---