Thanks for your response. What finally worked was this.
List userIdKeyList = new ArrayList();
for (Long userId : userIds) {
userIdKeyList.add(KeyFactory.createKey(User.class.getSimpleName(),
userId));
}
query.addFilter("__key__", FilterOperator.IN, userIdKeyList);
--
You received this me
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
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
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"
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 ema
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
https://groups.google.com/d/msg/googl
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 e
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
SELECT
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 List of friends. In JPA I am able to do
something like this "SELECT FROM User u WHERE u.friends.contains(:myId)".
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
https://groups.google.com/d/msg
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 ema
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 pos
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
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 em
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 google-app
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 t
16 matches
Mail list logo