Hi ogterran, On Tue, Jun 23, 2009 at 9:59 AM, ogterran <jonathanh...@gmail.com> wrote:
> > 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 Only one query - your search terms are ANDed together. -Nick Johnson > > Thanks > Jon > > > > -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ 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-appengine@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 -~----------~----~----~----~------~----~------~--~---