Hello,
I'm relying upon Python runtime and I know about the 1000 records
limit in GQL query recordsets.

I have an entity V ordered with a progressive sharded counter like a
vector v=[vi] with i in 1..n.
I have an entity C that represents a matrix with entries Cij with
i=1..n and j=1..n
I want to implement a way to cycle on the matrix C considering
submatrices of it with a limit of 1000 records each time.

I'm far from this goal and actually I'm able to obtain Cij with the
following code:

Vi = db.GqlQuery("SELECT * FROM V ORDER BY counter ASC LIMIT 1000")
for vi in Vi:
 Vj = db.GqlQuery("SELECT * FROM V ORDER BY counter ASC LIMIT 1000")
 for vj in Vj:
    query = "SELECT * FROM C WHERE i = " + str(vi.counter) + " AND j =
" + str(vj.counter)
    Cij = db.GqlQuery(query)
    c = Cij.get()
    if Cij.count() == 1:
      value = c.value
    else:
      value = 0.0

Any suggestion or link will be appreciated.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to