[appengine-java] Re: Libraries in /war/WEB-INF/lib not in the classpath

2010-10-01 Thread hadf
Actually, my librarie contains a servlet, but it is not called when I request the url-pattern, so I have a 404 Error. It works fine in a Eclipse Web Project, but not in Google Web Application Project. On 1 oct, 05:22, Didier Durand wrote: > Hello, what do you mean "not loaded" ? You get exception

[appengine-java] problem with cache I suppose

2010-10-01 Thread Spiridon Kopicl
Hello, I have a problem with my application and hope somebody can help me. We are developing gwt, gae application. google sdk 1.3.4 is used. When user goes to http://myapp.appspot.com he/she gets login screen after log in, application is available and after finishing the job user log out. And every

[appengine-java] A Contains Filter with DataStore Low Level API, is it possible?

2010-10-01 Thread tleroy
Bonjour tout le monde, I have in my DataStore an entity 'Page' with fields : name : store in a String tags : store in a List I would like to fetch pages with only some tags, something like that : Select * from Page where tags contains ['sport','video'] Is it poss

[appengine-java] Re: problem with cache I suppose

2010-10-01 Thread Didier Durand
Hi, it's going to be a little bit hard with Google only: the same cookie indicating login is used for both windows in same browser. I would guess that you have to "surimpose" your own layer of application to manage such a separate login process. Google is testing mutiple logins but - to my knowl

[appengine-java] Total number of rows and range query...

2010-10-01 Thread mic
I need to implement paging and I need to get 1. a page (size specified by user) 2. total number of rows. Please let me know if the performance of what I am suggesting 1. For total number of rows, I am planning to do a select keys from . This would be better than getting all columns. 2. For gett

[appengine-java] Re: Creating Folder/Directory at Runtime

2010-10-01 Thread jr
Thank you for the quick response. However it is said that files in WAR are accessible to the application via the filesystem. Does that mean that I can create a directory at runtime in the /war directory? Or the statement means another thing? I wish to create a directory at runtime so I can create a

[appengine-java] Clojure 1.2.0 or newer and VerifyError

2010-10-01 Thread Jan Stępień
Hello, I've got a problem with an application developed in Clojure. When I run it locally using dev_appserver.sh everything works fine. However when I upload it I get a VerifyError during startup. Here's a respective snippet from logs: http://pastebin.com/aDDdeFYM . The project works on GAE withou

Re: [appengine-java] Total number of rows and range query...

2010-10-01 Thread Ikai Lan (Google)
You can try to update counts on write, but this will only work for queries you know apriori. Even a count on keys isn't great - we need to run through all the indexes that match the query. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddi

Re: [appengine-java] A Contains Filter with DataStore Low Level API, is it possible?

2010-10-01 Thread Ikai Lan (Google)
Just use an equality filter - this should work just fine. Select from Kind where propertyName contains 'propertyValue' is just: Query q = new Query("Kind"); query.addFilter("propertyName", FilterOperator.EQUAL, "propertyValue"); -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:

Re: [appengine-java] Batch put for JDO objects

2010-10-01 Thread Ikai Lan (Google)
Not that it should matter, but are you on the newest SDK? Can you post a screenshot of AppStats? It's my understanding that the blog post is out of date. They should be happening in parallel. You're not going to save that much CPU time, though, since it still takes CPU to save all the entities (bu

[appengine-java] Re: A Contains Filter with DataStore Low Level API, is it possible?

2010-10-01 Thread tleroy
So I wrote: Query query=new Query("page"); query.addFilter("tags", FilterOperator.EQUAL, "sport"); query.addFilter("tags", FilterOperator.EQUAL, "video"); and i obtain the query : SELECT * FROM page WHERE tags = video AND tags = sport It was too easy : ). Thank you Ikai Lan

Re: [appengine-java] allocateIds performance

2010-10-01 Thread Ikai Lan (Google)
They're a function of the datastore itself, but they don't create indexes or any of the things that are usually associated with entity writes. The worst case performance has allocateIds doing a write to a hard disk, but most of the time they retrieve data from in-memory caches. What are you trying

Re: [appengine-java] Total number of rows and range query...

2010-10-01 Thread mic
Ikai, Thanks for your prompt reply. I do not know the queries apriori. I am using JDO.. Can I use batch get for JDO queries? This saves me a round trip to the data store. BTW, two more things 1. A "showplan" tool for the app engine would be great 2. Why are we not having any more app engine m

Re: [appengine-java] Batch put for JDO objects

2010-10-01 Thread Tommy
Yes, we're using the latest SDK (1.3.7). I've attached a screenshot of the request. The objects corresponding to the 6 puts were all sent to makePersistentAll(). According to the appstats, put didn't get called for them until the persistence manager was closed at the end of the transaction. Let me

Re: [appengine-java] Batch put for JDO objects

2010-10-01 Thread Ikai Lan (Google)
I misread (or missed?) one of your emails. Yes, makePersistentAll should be for inserts. I don't believe it was updated for updates. Here's the test I am looking at: http://www.google.com/codesearch/p?hl=en#79kbA0UmWLw/trunk/tests/org/datanucleus/store/appengine/JDOBatchInsertTest.java&q=makepersi

[appengine-java] Re: Long delay for mail deliveries (>15 min)

2010-10-01 Thread Dom Derrien
Thanks for the follow-up. Whenever we'll demo the speed of our communication engine, we'll be sure to have a recorded demo as plan B ;) Just for the record, here are the two spots we got the longuest delays: 1. Sep 28 @ 10:45 AM ET 2. Sep 27 @ 2:30 PM ET A+, Dom -- On Sep 30, 5:41 pm, "Ikai

[appengine-java] Simplest key query

2010-10-01 Thread Paul
Hi, I must admit that my db knowledge is very lacking, thus I need some help with making a simple query. I know I am just missing smth obvious and easy. Anyway, what I need is just a boolean method to check if enity exists. I am using Guice too, for binding all stuff. I know that the query synt

Re: [appengine-java] Re: Creating Folder/Directory at Runtime

2010-10-01 Thread andy stevko
I don't see how this could work without updating the deployed image. What I mean is that if one deployed instance was able to create the directory or alter any of the files in the deployed image, none of these changes are replicated to other deployed instances. Perhaps you can script the file sys

Re: [appengine-java] Total number of rows and range query...

2010-10-01 Thread Ikai Lan (Google)
App Engine Meetups are almost completely community organized. If you're speaking about the local Bay Area meetup, send a note to Waleed, the organizer of the meetup group. We're just here to offer support when we can. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googl

Re: [appengine-java] Re: EntityGroup restrictions on doing a Query outside of a txn

2010-10-01 Thread Yousuf Haider
Well it seems like after the query, if I call em.clear() everything seems to work fine. Note that my initial query was only returning a list of IDs, not entity objects but it looks like app engine still caches the entity objects in the first level cache. When the subsequent transaction is opened an