Before revision:  A common approach is to rely on Product Quantization that allows storing large vector databases in memory and also allows efficient distance computations.
After revision:  A common approach is to rely on Product Quantization that allows storing large vector databases in memory and efficient distance computations.