Dear google, will you answer on posts about the problems in this
group, or should we use issue tracker for messages like this?
App-id: ctms-release

I have model with field and ancestor, referencing the same keys.
So, i can retrive records using either .ancestor("key_here") or .filter
("project_key =", db.Key(encoded="key_here"))
It should return the same result, right?

But queries

SELECT * FROM ctms_Report WHERE ANCESTOR IS KEY
('agxjdG1zLXJlbGVhc2VyGQsSDGN0bXNfUHJvamVjdCIHaWQyNDYzMAw') AND
contactdate <= DATE('2009-11-14') AND contactdate >= DATE
('2009-11-14') ORDER BY contactdate

and

SELECT * FROM ctms_Report WHERE project = KEY
('agxjdG1zLXJlbGVhc2VyGQsSDGN0bXNfUHJvamVjdCIHaWQyNDYzMAw') AND
contactdate = DATE('2009-11-14')

returns different results. 1st returns 1 record, 2nd — 3 records.


Can you explain, please, what's wrong?

Is it another problem with indexes, when some records are lost?

--

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


Reply via email to