S
S
Sergey Pugovkin2017-12-14 00:52:16
Google
Sergey Pugovkin, 2017-12-14 00:52:16

How Google and Yandex store an infinite number of photos?

How Google and Yandex store an infinite number of photos?
In their database, images are stored as a set of pixels, then you can easily identify a duplicate and store only the originals. Pixel combination options are limited.
One 32-bit pixel is 16777216 options. One pixel takes 4 bytes, so single pixel images will require 4 * 16777216 = 64 MB of storage. For images in 2048x2048 - the combinations will be 16777216 * 2048 * 2048 = 70368744177664 (right?), which will require "only" 256 TB.
So what happens?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2017-12-14
@Moskus

What nonsense.
First, the number of images in the search engine cache is never infinite, just very large.
Secondly, images are not stored in the cache in their original resolution - their size does not exceed 300-something pixels on the long side.
Thirdly, most images are still stored compressed in JPEG. In practice, their size will not exceed 15 kilobytes (usually less than eight).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question