Reply
Old 07-12-2007, 08:19 AM How Google Works
Mattmaul1992's Avatar
Ultra Talker

Posts: 485
Name: Matt
Trades: -1
Over the last little while many people have asked me to make search engines in PHP/MySQL for them. From what I know PHP/MySQL isn't really a good language to search in but it did get me thinking. How do extremely efficient, fast search engines such as Google work under the hood? I mean almost every site in the world is on there. How does it return a result that fast?
The only plausible solution I have though of is pre-grab results. At first I thought this was a probable solution but you type in something like 'adfkjddikwiodjnfkdk' and still get a fast result. It's possible but I'm not sure. And even then it would take forever to fetch such a large result source from a database.
I'm not sure why but this is really bugging me. Any ideas?
__________________
PHP Code:
$talkupation++; 
http://www.forum-front.com/ - Free IPB forum hosting (releasing today!!!), no ads, free modifications
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-12-2007, 09:31 AM Re: How Google Works
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,114
Name: Matt. (>',')>
Location: London, England.
Trades: 0
I believe google use mostly python. But with the amount of hardware they have efficientcy in thier code isn't that important.
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 07-12-2007, 12:21 PM Re: How Google Works
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,674
Name: John Alexander
Trades: 0
I think they have highly efficient code, but also hundreds of thousands of computers come servers, and great load balancing.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 07-12-2007, 02:02 PM Re: How Google Works
chrishirst's Avatar
Super Moderator

Posts: 26,381
Location: Blackpool. UK
Trades: 0
Also Google does not use a relational database model with table structures as you would be doing with MySql.

Their DB model is the inverted index which is far quicker on data retrieval but slower to update and index.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-13-2007, 10:21 AM Re: How Google Works
fitnfree's Avatar
Ultra Talker

Latest Blog Post:
Almond Cookie Recall
Posts: 381
Name: Jj
Location: Wisconsin, USA
Trades: 0
I've always marveled at how fast Google can return results, too! Although I'm not well-versed in the working of SEO's, so I just marvel at it in awe! lol.

I have always wondered though why a forum of mine (PHP) just won't get indexed. It is a local forum (city issues, etc.) but still, you'd think it would at least get indexed, would you???
fitnfree is offline
Reply With Quote
View Public Profile Visit fitnfree's homepage!
 
Old 07-14-2007, 09:12 PM Re: How Google Works
BreaktheSilence's Avatar
Super Talker

Posts: 103
Trades: 0
Quote:
Originally Posted by fitnfree View Post
I've always marveled at how fast Google can return results, too! Although I'm not well-versed in the working of SEO's, so I just marvel at it in awe! lol.
Millions of little tiny gremlins...
BreaktheSilence is offline
Reply With Quote
View Public Profile Visit BreaktheSilence's homepage!
 
Old 07-15-2007, 01:04 AM Re: How Google Works
vangogh's Avatar
Post Impressionist

Posts: 9,836
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Matt you really answered your own question. They do pre-fetch things. That's what indexing is all about. When you go to Google and type in a query, Google doesn't go out and search the web. They search their internal servers.

I think that's the main thing you're looking for if I'm understanding right.

Naturally they want to return results as fast as possible. I'm sure they keep working to make their code more efficient and do what they can to remove bottlenecks. Like Chris said they search an inverted index database model.

So they do everything they can to make the search of they're index faster, but they are searching their index and not going out on the web finding results in real time. When you search you are searching the web as Google saw it sometime prior to your search. For some sites that might mean a few minutes ago. For others it might mean a few months ago.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-15-2007, 03:04 AM Re: How Google Works
chrishirst's Avatar
Super Moderator

Posts: 26,381
Location: Blackpool. UK
Trades: 0
Quote:
Millions of little tiny gremlins
Naah, it's not the gremlins, that's MSN

It's the Pigeons
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-16-2007, 04:42 AM Re: How Google Works
BreaktheSilence's Avatar
Super Talker

Posts: 103
Trades: 0
Sweet link...

Although I'm having to bite my tongue to refrain from the obligatory comment on how Google search is completely "bird brained."
BreaktheSilence is offline
Reply With Quote
View Public Profile Visit BreaktheSilence's homepage!
 
Reply     « Reply to How Google Works
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11698 seconds with 13 queries