thx for the question.... I think so...
as example I have models as below:
class UserInvite(db.Model):
invited_person = db.ReferenceProperty(User,
collection_name="invites_in")
person_inviting = db.ReferenceProperty(User,
collection_name="invites_out")
message = db.TextProperty()
date = db.DateTimeProperty(auto_now_add = True)
class Connection(db.Model):
user = db.ReferenceProperty(User, collection_name="connections")
connection = db.ReferenceProperty(User)
date = db.DateTimeProperty(auto_now_add = True)
and do queries such as:
request.user.invites_in.filter('invited_person =',request.user)
request.user.invites_out.filter('person_inviting =',request.user)
or
user.connections.filter('user =',request.user)
My thinking may be wrong but should it index on invited_person,
person_inviting and connections?
thx again,
Dave
On Jan 18, 2:00 pm, Bill <[email protected]> wrote:
> Just to make sure, you have forced the local dev server to execute a
> number of queries that require indices, right?
>
> On Jan 18, 6:50 am, Dave <[email protected]> wrote:
>
> > Hi, In chasing a query issue, i've noticed my index.yaml file is not
> > being updated at all. I've tried to delete it and restart server ($
> > python manage.py runserver) and all that happens is a new index.yaml
> > is created as below. Note there is nothing about indexes in it? I have
> > a previous app where the index.yaml file was updated and I could see
> > all the autogenerated index info. Any ideas? btw, on mac 10.4.11. Also
> > I've search all over for a 're-index' command for manage.py but so far
> > have not found a thing.
>
> > thx...
>
> > indexes:
>
> > # AUTOGENERATED
>
> > # This index.yaml is automatically updated whenever the dev_appserver
> > # detects that a new type of query is run. If you want to manage the
> > # index.yaml file manually, remove the above marker line (the line
> > # saying "# AUTOGENERATED"). If you want to manage some indexes
> > # manually, move them above the marker line. The index.yaml file is
> > # automatically uploaded to the admin console when you next deploy
> > # your application using appcfg.py.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---