system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does Google search the whole internet for something in a matter of seconds or even less?
gpt
Google spends all day every day searching the web with bots. Websites and their data are catalogued in a database and when you search, it is the database that is being looked through.  It's also not the whole Internet. Lots of sites have code that prevents them from showing up in the search engine.