[google-appengine] Re: Completely clearing the datastore

2009-04-25 Thread 'Αλκης Ευλογημένος
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 d

[google-appengine] Re: Completely clearing the datastore

2009-04-26 Thread 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 assumptio

[google-appengine] Re: Completely clearing the datastore

2009-04-26 Thread 'Αλκης Ευλογημένος
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 th

[google-appengine] Re: Completely clearing the datastore

2009-04-27 Thread Sri
But the issue is that i dont really have the keys on me... does that mean that each time i load the datastore il have to keep track of the keys as well locally.. so that when i want to clear them i can use them.. cheers Sri On Apr 27, 8:50 am, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > The

[google-appengine] Re: Completely clearing the datastore

2009-04-27 Thread 'Αλκης Ευλογημένος
If you don't its better to do it on the server side rather than transferring data through the net. No you don't need to keep the keys locally. 2009/4/27 Sri > > But the issue is that i dont really have the keys on me... does that > mean that each time i load the datastore il have to keep track o

[google-appengine] Re: Completely clearing the datastore

2009-04-27 Thread Sri
Right you mean have handlers that delete data instead of using remote_api? But wouldnt that limit my requests to 30 seconds (well i guess I could 1000 "delete 100 items" requests) right? On Apr 27, 5:09 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > If you don't its better to do it on the

[google-appengine] Re: Completely clearing the datastore

2009-04-27 Thread 'Αλκης Ευλογημένος
Yes but you can hit them repeatedly and from multiple threads until everything is deleted. 2009/4/28 Sri > > Right you mean have handlers that delete data instead of using > remote_api? > > But wouldnt that limit my requests to 30 seconds (well i guess I could > 1000 "delete 100 items" requests

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread djidjadji
You can do it from multiple threads like Alkis proposed but I think that you then try to delete an object multiple times. The index is only updated last, and committed when the delete operation succeeds. If a request comes in short after another request that is still busy with the "objects=q.fetch

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread Tom Wu
AJAX --~--~-~--~~~---~--~~ 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+un

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread 风笑雪
Simply use a meta refresh. 2009/4/28 Tom Wu > AJAX > > > > --~--~-~--~~~---~--~~ 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 unsubs

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread Tom Wu
Thanks 风笑雪 Meta refresh is much easier than AJAX. It got my vote. Best Regards Tom Wu 2009/4/28 风笑雪 > Simply use a meta refresh. > > 2009/4/28 Tom Wu > >> AJAX >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread Sri
Actually Ive started doing multiple threads couple of nights ago and it was pretty fast... Same applied with uploading new data. Ofcourse now I am just out of quota... :D thanks for the tips guys. cheers Sri On Apr 28, 4:37 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > Yes but you can

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread Sri
Sorry for the lame question but whats a Meta Refresh? Fancy Term or Fancy Technique? cheers Sri On Apr 28, 11:56 pm, Tom Wu wrote: > Thanks 风笑雪 > > Meta refresh is much easier than AJAX. > > It got my vote. > > Best Regards > Tom Wu > > 2009/4/28 风笑雪 > > > Simply use a meta refresh. > > > 200

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread djidjadji
http://www.lmgtfy.com/?q=Meta+Refresh 2009/4/28 Sri : > > Sorry for the lame question but whats a Meta Refresh? Fancy Term or > Fancy Technique? http://www.lmgtfy.com/?q=Meta+Refresh --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[google-appengine] Re: Completely clearing the datastore

2009-04-28 Thread Sri
ha ha nice one mate... it would have been easier for you to just say "Fancy Term for refreshing with meta headers" On Apr 29, 6:55 am, djidjadji wrote: > http://www.lmgtfy.com/?q=Meta+Refresh > > 2009/4/28 Sri : > > > Sorry for the lame question but whats a Meta Refresh?  Fancy Term or > > Fan

[google-appengine] Re: Completely clearing the datastore

2009-04-29 Thread 风笑雪
In my test, using multiple threads is the same speed as 1 thread. 2009/4/29 Sri > > Actually Ive started doing multiple threads couple of nights ago and > it was pretty fast... > > Same applied with uploading new data. Ofcourse now I am just out of > quota... :D > > thanks for the tips guys. >

[google-appengine] Re: Completely clearing the datastore

2009-04-29 Thread Sri
actually ive tried using multiple threads.. i found uploads were faster ... deletes on (non overlapping) data was someone what similar.. On Apr 29, 10:37 pm, 风笑雪 wrote: > In my test, using multiple threads is the same speed as 1 thread. > > 2009/4/29 Sri > > > > > Actually Ive started doing m

[google-appengine] Re: Completely clearing the datastore

2009-04-29 Thread 风笑雪
I only tested insert and delete. And they works slower( maybe because of including threads' starting time ). 2009/4/30 Sri > > actually ive tried using multiple threads.. > > > i found uploads were faster ... deletes on (non overlapping) data was > someone what similar.. > > On Apr 29, 10:37 pm,

[google-appengine] Re: Completely clearing the datastore

2009-04-30 Thread 风笑雪
Just like this: threads = [] for i in xrange(10): threads.append(threading.Thread(target=add)) # add is a function to add some data for thread in threads: thread.start() 2009/4/30 Sri > > how did you create the threads?? did you create and destroy them each > time or did you mantain a poo

[google-appengine] Re: Completely clearing the datastore

2009-04-30 Thread Sri
how did you create the threads?? did you create and destroy them each time or did you mantain a pool/manager ?? On Apr 30, 3:58 pm, 风笑雪 wrote: > I only tested insert and delete. > And they works slower( maybe because of including threads' starting time ). > > 2009/4/30 Sri > > > > > actually i

[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