Hi Ian,
Thanks for the response.
I have one question on number of datastore calls.
How many datastore calls is the query below making?
Is it 1 or 100?
> class Product(db.Model):
> pid = db.StringProperty(required=True)
> title = db.StringProperty(required=True)
> site = db.StringProperty(required=True)
> url = db.LinkProperty(required=True)
>
> class ProductSearchIndex(search.SearchableModel):
> product = db.ReferenceProperty(Product)
> title = db.StringProperty(required=True)
query = ProductSearchIndex.all().search(searchtext)
results = query.fetch(100)
for i, v in enumerate(results):
print v.product.url
Thanks
Jon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---