Re: Live Search

From: Date: Wed, 09 Dec 2009 09:55:23 +0000
Subject: Re: Live Search
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6698@lists.php.net to get a copy of this message
2009/12/9 Stewart Lord <stewey@ambitious.ca>: > On 5-Dec-09, at 4:09 AM, Hannes Magnusson wrote: >>> >>> Thanks Hannes, this is helpful. Rendering the docs would be a good >>> exercise. Can you point me in the right direction? >> >> http://wiki.php.net/doc/phd > > > Hi Hannes, > > I was able to build the docs and make use of the PHD database as you > suggested. PHD worked great BTW :) ...I have posted a version of the > search-api script to pastebin: > > http://pastebin.com/m2da3e823 > > This version runs much faster than the manual-lookup.sqlite version, but > still about 50% slower than the original, averaging ~48ms/request. I don't > know how this would perform on the mirrors. Based on my earlier tests, maybe > around 150ms. Playing with other sites that do auto-complete (Google, Apple, > Hulu, Bing) I found response times typically between 30-90ms. > > Should we go with this direction or the (dumber) faster version that doesn't > use a database? > > It might be worthwhile to put together some of the front-end pieces and try > it out. There is no longer an official autocomplete plugin for jQuery (as of > 1.7), but this one (http://plugins.jquery.com/project/autocompletex) looks > promising. > > Stew > > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > It is a pretty common scenario to provide a dumbed down data store for super fast access where the data doesn't change often. Considering that the manual isn't built more than once a week, having a PhD package which can build the "dumber" version would seem perfectly reasonable. PhD's ability to allow the manual to be rendered in whatever form is required would seem to fulfil the criteria quite nicely. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.webmaster (#6698) next »