Hi Richard,

You're running into short term quotas, which are designed to prevent
you exhausting your entire quota for the day in one go. You need to
rate-limit your bulk loading code, and/or pay for additional quota.
Even enabling billing without setting a high limit will increase your
short term quotas automatically.

You should also look at your bulk loading code and make sure it's as
efficient as possible. One possibility is to use the Python
bulkloader.

As far as deletion goes, make sure you are doing key-only queries to
get the key to delete, which will save on CPU time and timeouts.

-Nick Johnson

On Wed, Jul 15, 2009 at 12:11 AM, richard
emberson<[email protected]> wrote:
>
>
> So, once again, I've tried to upload some data.
>
> After a couple, I guess, thousand records I start
> getting HttpServletResponse.SC_FORBIDDEN from
> the app engine server.
>
> On the Dashboard it says:
>
> Your application is exceeding a quota: CPU Time
> Your application is exceeding a quota: Datastore CPU Time
>
> but under Resource, CPU Time usage is at 34%
> and Stored Data usage is at 4%.
>
> I am trying to develop an application on GAE.
> I will need to load tens of thousands or
> a couple of hundred thousand entities as part
> of testing the application. I will then want
> to delete those entities.
>
> Currently, I can only load a couple of hundred
> before the app engine starts rejecting additional
> uploads. And I can not delete any of them - I
> keep getting timeouts - even if I try to delete only
> 10.
>
> Is there some upload per minute quota or something?
> And, whats the magic to delete stuff.
>
> The following code causes timeouts:
>
>     DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
>     final Query q = new Query(kindName);
>     q.setKeysOnly();
>
>     final Iterable<Entity> entities = ds.prepare(q).asIterable(
>                 FetchOptions.Builder.withLimit(count));
>     KeyIterable ki = new KeyIterable(entities);
>     ds.delete(ki);
>     int numberDeleted = ki.getCount();
>     return numberDeleted;
>
>
>
> Richard
>
> --
> Quis custodiet ipsos custodes
>
> >
>



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to