[appengine-java] FilterOperator.IN Query not returning any results

2011-10-17 Thread keyvez
Query query = new Query(User.class.getSimpleName()); query.addFilter(id, FilterOperator.IN, userIdList); // I've also tried passing userId as a list of strings log.info(query: + query.toString()); // Shows SELECT * FROM User WHERE id IN [194002, 183005, 198001, 196003] PreparedQuery

Re: [appengine-java] FilterOperator.IN Query not returning any results

2011-10-17 Thread keyvez
Hi, Thanks for your suggestion, it didn't seem to work. The query.toString() looking like this now. SELECT * FROM User WHERE id IN [User(194002), User(183005), User(198001), User(196003)] -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

Re: [appengine-java] FilterOperator.IN Query not returning any results

2011-10-17 Thread keyvez
Thanks for your response. What finally worked was this. ListKey userIdKeyList = new ArrayListKey(); for (Long userId : userIds) { userIdKeyList.add(KeyFactory.createKey(User.class.getSimpleName(), userId)); } query.addFilter(__key__, FilterOperator.IN, userIdKeyList); -- You received

[appengine-java] Selecting 100 records from 789 taking 2.5 seconds

2011-10-16 Thread keyvez
What can I do to fix this? Please help. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/QBzjCLIdv2IJ. To post to this group, send

Re: [appengine-java] Selecting 100 records from 789 taking 2.5 seconds

2011-10-16 Thread keyvez
Thanks. I used it, and it pointed my out in the right direction, the problem was creating entitymanager in jpa, i switched to low-level datastore calls an its taking 0ms instead of 800ms. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: Contains query Low Level datastore

2011-07-20 Thread keyvez
Thanks guys that worked. The equality operator works as a contains operator for collection properties. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Contains query Low Level datastore

2011-07-19 Thread keyvez
Hi, I need help with doing a query that uses a contains filter operation. The specific use case is that I have to find all users that are have me as a friend. The User class has a ListLong of friends. In JPA I am able to do something like this SELECT FROM User u WHERE

Re: [appengine-java] Contains query Low Level datastore

2011-07-19 Thread keyvez
Thanks for your quick response. After looking into the IN operator, it doesn't seem to be what I need. My table looks like this. User table: id friends 15 21, 4 31 41, 2 51 I would like to find out who are user 1's friends so the query would be something like this

Re: [appengine-java] Contains query Low Level datastore

2011-07-19 Thread keyvez
Thanks Jeff and Bruno, will try that out. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/0TM8G5toDwYJ. To post to this group, send

Re: [appengine-java] ScriptEngine

2011-06-19 Thread keyvez
Included js.jar in the WEB-INF folder and it still doesn't work. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/jdBxepWVw_QJ. To post

Re: [appengine-java] ScriptEngine

2011-06-19 Thread keyvez
I meant I put it in WEB-INF/lib folder. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/W7tJoVsheGUJ. To post to this group, send

Re: [appengine-java] ScriptEngine

2011-06-19 Thread keyvez
I also have to put a jsr223 implementation jar in the WEB-INF/lib folder for it to find ScriptEngineManager. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] is setHeader(Connection, keep-alive) prohibited?

2011-05-18 Thread keyvez
Hi, I have a servlet handler that is trying to set a connection keep-alive header, but it looks like app engine is removing it from the response. Why? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] Re: is setHeader(Connection, keep-alive) prohibited?

2011-05-18 Thread keyvez
I tried to set the connection keep-alive header in a backend and even that didn't work. I thought backends didn't have a time limit and they are directly addressable and they don't scale like regular instances. So why not enable persistent connections for backends at least. I am willing for pay

[appengine-java] Cannot send emails with attachments larger than 1mb

2011-03-14 Thread keyvez
Hi, I am trying to send emails with attachments and the only ones that go through are the ones smaller than 1mb. I read that app engine increased the limit to 10mb for email including attachment. I am using 1.4.2 sdk. Thanks, Gaurav -- You received this message because you are subscribed to

[appengine-java] Re: Cannot send emails with attachments larger than 1mb

2011-03-14 Thread keyvez
Problem solved, it wasn't the email service, I was trying to fetch too much data in one api call and the it was failing there instead. -- 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