[appengine-java] Re: Per-minute quota

2011-01-04 Thread Anton Ananich
Thanks for the answer,

But during 1 minute I'm able to run out of several quotes so this
approach does not work for me. It is too complicated and lime
consuming.

Respectfully,
Anton

On Dec 27 2010, 9:52 am, Didier Durand 
wrote:
> Hi Anton,
>
> In case, you can find the quotas (free and with billing) here in this
> table:http://code.google.com/appengine/docs/quotas.html#Resources
>
> Maybe by using it and the infos delivered by the admin console, you
> can figure out where you reach the quota.
>
> regards
> didier
>
> On Dec 27, 7:54 am, Anton Ananich  wrote:
>
>
>
>
>
>
>
> > Hi!
>
> > Sometimes I can see this message:
>
> > This Google App Engine application is temporarily over its serving
> > quota.  Please try again later.
>
> > Is there a way to find out: which exact per-minute quota was exceeded?
>
> > Thanks,
> > Anton

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Per-minute quota

2010-12-26 Thread Anton Ananich
Hi!

Sometimes I can see this message:

This Google App Engine application is temporarily over its serving
quota.  Please try again later.

Is there a way to find out: which exact per-minute quota was exceeded?

Thanks,
Anton

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: One-to-many relationships and saving

2009-09-13 Thread Anton Ananich

Dear Max,

I read the doc, but it seems to me that it describes 1-N
relationships, but there is a talk about 0-N relationships.

I have the same trouble and here is an example:

class BugReport {
 Key id;
 List commentList;
}

class Comment {
 Key id;
}

So in this case I need 0-N relationship because when BugReport is
submitted, there are no comments yet.
But if I try to get list of BugReports or save second BugReort I'v got
an exception:

com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found.
at
com.google.appengine.api.datastore.DatastoreApiHelper.translateError
(DatastoreApiHelper.java:35)
at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall
(DatastoreApiHelper.java:56)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:342)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl.access$100(DatastoreServiceImpl.java:269)
at com.google.appengine.api.datastore.DatastoreServiceImpl
$PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:303)
at
org.datanucleus.store.appengine.DatastoreElementContainerStoreSpecialization.getChildren
(DatastoreElementContainerStoreSpecialization.java:99)
at org.datanucleus.store.appengine.DatastoreFKListStore.listIterator
(DatastoreFKListStore.java:47)
at
org.datanucleus.store.mapped.scostore.AbstractListStore.listIterator
(AbstractListStore.java:84)
at org.datanucleus.store.mapped.scostore.AbstractListStore.iterator
(AbstractListStore.java:74)
at org.datanucleus.sco.backed.List.loadFromStore(List.java:241)
at org.datanucleus.sco.backed.List.toArray(List.java:591)
at org.datanucleus.store.mapped.mapping.CollectionMapping.postInsert
(CollectionMapping.java:106)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.runPostInsertMappingCallbacks
(DatastoreRelationFieldManager.java:225)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.access
$300(DatastoreRelationFieldManager.java:49)
at org.datanucleus.store.appengine.DatastoreRelationFieldManager
$1.apply(DatastoreRelationFieldManager.java:112)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.storeRelations
(DatastoreRelationFieldManager.java:80)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeRelations
(DatastoreFieldManager.java:804)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject
(DatastorePersistenceHandler.java:231)
at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent
(JDOStateManagerImpl.java:3185)
at org.datanucleus.state.JDOStateManagerImpl.makePersistent
(JDOStateManagerImpl.java:3161)
at org.datanucleus.ObjectManagerImpl.persistObjectInternal
(ObjectManagerImpl.java:1298)
at org.datanucleus.ObjectManagerImpl.persistObject
(ObjectManagerImpl.java:1175)
at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent
(JDOPersistenceManager.java:669)
at org.datanucleus.jdo.JDOPersistenceManager.makePersistent
(JDOPersistenceManager.java:694)

Is there a walk-around which can allow me to use 0-N relationships?

Thank you,
Anton Ananich

On Aug 15, 6:11 am, Max Ross  wrote:
> You may find this page 
> helpful:http://www.datanucleus.org/products/accessplatform_1_1/jdo/orm/one_to...
>
> The key point is that you need to set both sides of a bidirectional
> relationship.  Also, if you're accessing members directly (as in the below
> example) you need to annotate the class performing this access with
> @PersistenceAware.  Otherwise JDO can't see that you're modifying the fields
> and doesn't know it needs to perform any updates.  However, it's much easier
> to just always access members via setters and getters.
>
> Hope this helps,
> Max
>
>
>
> On Fri, Aug 14, 2009 at 4:31 PM, Dobromir  wrote:
>
> > Here's another test that fails and which gets to the heart of my
> > problem: how do I add a Child to a Parent that's already been saved?
>
> > �...@test  // FAILS - help!
> >  public void saveParentThenAddChild() throws Throwable {
> >     Child child = new Child();
> >    Parent parent = new Parent();
> >     savePojo(parent);
> >    assertNotNull(parent.key);
> >     parent.children = Lists.newArrayList(child);
> >    savePojo(parent);
> >     assertNotNull(parent.key);
> >    assertNotNull(child.key);  // THIS FAILS
> >  }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Server error 500

2009-09-12 Thread Anton Ananich

Hi!

My application became completely broken and now I can not eve backup
data!!! Datastore does not work any longer, all the data is lost.

Here is page:

http://herewetest.appspot.com/jdo.jsp

Here is source code:

<%
  Query q = PMF.getInstance().newQuery(Website.class);
  List o = (List)q.execute();
  for (Website w : o){
  %> . <%
  PMF.getInstance().deletePersistent(w);
  }
%>


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



[appengine-java] Re: JDOQL - query syntax documentation

2009-08-18 Thread Anton Ananich

Hi!

Thank you. Now I understand why contains(...) will not solve my
problem. Actually we can see that it is only possible to search
through sting fields using startsWith(...). Function matches(...) does
the same.

Basically it means that if I have text fields like "221B Baker Street,
London, UK" and I want to find everybody from London than I have to
split the address to separate substrings, save them to datastore and
use query like this to find English mans from London:
substringIndex.startsWith("London")

Can anybody tell me please, if there is more smart way to do this?

Thanks,
Anton Ananich

On Aug 16, 5:05 pm, Sean Lynch  wrote:
> Hey Anton - I've seen a few people run into this before.
>
> .contains(...) in this case only works on List fields in your model.
> So the query you're trying to run is actually checking to see if any
> of the items in that list is exactly "A".  This is why it's treated
> the same as ==.  contains(...) does _not_ work on a single string
> object to do substring matching like you're trying to do.
>
> Out of curiosity, what are you trying to match a substring for?
>
> On Aug 15, 7:20 am, Anton Ananich  wrote:
>
>
>
> > Hi.
>
> > I have just found an answer in the source code myself. It seems that
> > contains(...) works like operator ==. Is this a 
> > bug?http://code.google.com/p/datanucleus-appengine/source/browse/trunk/sr...
>
> > Best regards,
> > Anton Ananich
>
> > On Aug 15, 4:58 pm, Anton Ananich  wrote:
>
> > > Dear Jeff,
>
> > > I have just spend several hours trying to make [field].contains(...)
> > > working, however I was not able to do that.
> > > Here is piece of code:
>
> > >   Query q = PMF.getInstance().newQuery(my.package.Customer.class);
> > >   q.setFilter("address.contains(\"A\")");
> > >   q.setResult("count(this)");
> > >   o = q.execute().toString();
>
> > > I tried out different combinations, but always got zero. Than I tried
> > > to use startsWith instead of contains and it works as needed.
> > > Could you please give me a hint what is the best way to find all the
> > > customers from "Roma" using google apps engine?
>
> > > Best Regards,
> > > Anton Ananich
>
> > > On Aug 7, 3:42 am, "Jeff S (Google)"  wrote:
>
> > > > Hi Kris,
>
> > > > You can currently use startsWith, contains, and regular expressions as 
> > > > long
> > > > as the pattens is a startsWith type of query (ex: blah.* but not 
> > > > .*blah). I
> > > > don't think endsWith will work. If you want to create case insensitive
> > > > search, it might be helpful to store a lowercased form of the text in 
> > > > your
> > > > entity along with the original text content.
>
> > > > Thank you,
>
> > > > Jeff
>
> > > > On Wed, Aug 5, 2009 at 5:50 AM, Kris  wrote:
>
> > > > > Hi all,
>
> > > > > I just started to work with the Google App Engine and I have run into
> > > > > some troubles on finding query syntax documentation. What I am trying
> > > > > to figure out is how I can build up my where conditions.
>
> > > > > Ex.
> > > > > I can write: "select from " + [myClass].class.getName() + " where
> > > > > [myField].startsWith(\"Hello\")"; and this works fine. I can use
> > > > > endsWith as well but I can not use substring, toLowerCase or indexOf.
>
> > > > > What else can I put into my where clause?
>
> > > > > What I am trying to achieve is some kind of wildcard or case
> > > > > insensitive query search.
>
> > > > > The best regards
> > > > > Kris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---