Nick, But he is also doing v.product which will do a get() by key for each Product entity will it not?
On Tue, Jun 23, 2009 at 7:14 PM, Nick Johnson (Google) < nick.john...@google.com> wrote: > 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 > > > > > -- ======================================= 株式会社ビープラウド イアン・ルイス 〒150-0012 東京都渋谷区広尾1-11-2アイオス広尾ビル604 email: ianmle...@beproud.jp TEL:03-5795-2707 FAX:03-5795-2708 http://www.beproud.jp/ ======================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---