howtogeek at April 4th, 2013 18:34 — #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 at April 8th, 2013 03:22 — #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 at April 8th, 2013 06:38 — #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 at July 11th, 2014 14:26 — #4
This topic is now closed. New replies are no longer allowed.