Hi,
As far as I know, datastore can take AND queries with no trouble. I'm
thinking this might be the library you're using to interact with the
datastore that might do this.
I assume if you try a simple "where" clause just checking for your date
component, it works?
Cheers
On Sunday, July 12,
hmmm, having rechecked, are you sure that you can do an AND if your query
is a "selectFromKeysOnly". Isn't there a more generic query?
Cheers
On Monday, July 13, 2015 at 11:11:11 AM UTC-4, Patrice (Cloud Platform
Support) wrote:
>
> Hi,
>
> As far as I know, datastore can take AND queries with
Hi, thanks for your reply.
to clarify, I have one query which retrieves the keys for Entity C1, This
query is not my focus, because it onlys fetches the keys which I will later
use to get the Entities from class C1.
So I have a list with keys from Entity C1. C1 has an attribute date of type
lon
Hi Marcus,
I know this won't give you anything more than what you already have, but
can you try running your second query "queryBatchString", but without the
filter for the date field?
And could you copy the string for "queryBatchString"? Because looking at
how you build it, your keys should
I found the solution. I used the wrong syntax. Thanks for your help:
Correct is:
String queryBatch = "select from " + C1.class.getName()
+ " where " + Model.KEY_FIELD + " == :keys"
+" && " + C1.C1_DATE_FIELD + " > :date"
Am Dienstag, 14. Juli 2015 22:27:32 UTC+2 schrieb Patrice (Cloud Platfor
now I am asking me how to pass the second parameter value to the query:
select from C1 where key == :keys && date > :date
":keys" is a list of keys and ":date" is a single long value.
I execute the query with
query.execute(keyList);
The method "execute" only takes one parameter.
Am Donne
Ok, I solved it.
Solution is to hard code it in query like this:
select from C1 where key == :keys && date > 1436905284198
Am Donnerstag, 16. Juli 2015 21:41:56 UTC+2 schrieb Marcus Masekowsky:
>
> now I am asking me how to pass the second parameter value to the query:
> select from C1 where k
Hi Marcus,
Thank you for letting me know you got it to work.
Always happy to help, if there's anything else feel free to start a new
thread
Cheers, and have a good weekend!
On Thursday, July 16, 2015 at 4:21:17 PM UTC-4, Marcus Masekowsky wrote:
>
> Ok, I solved it.
> Solution is to hard code