howtogeek — 2013-04-04T18:34:06-04:00 — #1
Originally published at: http://www.howtogeek.com/142789/why-are-google-search-results-faster-than-local-hard-drive-queries/
Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.
zain — 2013-04-08T03:22:00-04:00 — #2
It's more than just simple indexing. By the time you type in the first few letters of your search term, google goes ahead and pre-fetches the most common search results people want based on popular queries starting with that string. It doesn't have to search it's entire index for items matching that search text, it already has a cache of that sitting somewhere.
As you enter more text google just modifies the results it's searching for accordingly and continues the process.
sdaugherty — 2013-04-08T06:38:21-04:00 — #3
It's not just the size of their server farms, but also how well that they are able to scale to make use of them and avoid creating bottlenecks. Throwing more servers at a problem won't make solving that problem faster, unless you also know how to break down the task so that it can be done efficiently in small chunks. Take a look at the MapReduce article from wikipedia below.
This is just one of the things Google uses to optimize for speed, but it's a big part - by breaking up tasks efficiently, they can search their index in parallel, so that each node used to perform the search is searching a different part of the index at the same time.
geek — 2014-07-11T14:26:45-04:00 — #4
This topic is now closed. New replies are no longer allowed.