Test with a brand new function which will only do simple datastore
queries:

I found when I do the queries without any conditions, for example,
get_by_id or GQLquery(select * FROM tarsusaItem LIMIT 20) will run
smoothly.

Once I put a query my site should executed like SELECT * FROM
tarsusaItem WHERE public = 'public' and routine = 'none' and done =
False ORDER BY date DESC LIMIT 9, it doesn't work.



On 6月4日, 下午12时12分, CNBorn <[email protected]> wrote:
> Hi Nick,
>
>     Thank you for your response.
>
> First I post a presumption:
>
> Is this problem may possibly related to indexes changes? I found there
> is such a index changes during my first deploy (And later, I found
> this kind'tarsusaItem' was unable to get)
>
> Created 3 index(es)     kinds=tarsusaItem
>
> This is the only thing I can track from my admin log.
>
> I have tried appcfg.py vacuum_indexes, but it doesn't help.
>
> ---
>
> the problem is that all my querys against this model gets nothing, and
> I didn't change any of them.
>
> The cause of this may due to a modified count function, in which there
> is a traversal while loop to count this model(named 'tarsusaItem') in
> case it has more than 1000 records.
>
> After I uploaded this code, the weird thing happened.
>
> Later, I will put this count function here.
>
> On 6月4日, 上午4时15分, "Nick Johnson (Google)" <[email protected]>
> wrote:
>
> > Hi CBorn,
>
> > It's not clear from your post exactly what the problem is. Are you saying
> > you have kinds for which entities are visible in the admin console datastore
> > viewer, but do not appear in query results? If that is the case, you need to
> > show us the query code you're using - more likely than not, it's a problem
> > with the query that's causing it to return 0 results.
>
> > -Nick Johnson
>
> > On Wed, Jun 3, 2009 at 10:45 AM, CNBorn <[email protected]> wrote:
>
> > > Hi All,
>
> > >    I need some help here, for I suddenly found my application can not
> > > found any data in my main model.
>
> > >    You can accesshttp://checknerds.appspot.comtocheck that.
>
> > >    In the right corner, the second number is the count of that model
> > > (978 or sth).
>
> > >    But there should be a  brief list at the bottom, but there is not.
> > > After I logged in, I found there are all signs says that this model is
> > > kind of EMPTY. It looks like I am a new user at all.
>
> > >   But I still can see this model with all its data in Data Viewer. I
> > > have tried to revert my code and updated it again, it won't works.
> > > Before this disaster happened, I am just trying some new ways to count
> > > this model, there is no any write actions against it.
>
> > >   Is there any body who can help me to solve this problem? Thanks.
>
> > >   site:http://checknerds.appspot.com
--~--~---------~--~----~------------~-------~--~----~
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