Tensor product and infinite direct product
= Tensor product and infinite direct product
Tensor product need not commute with an infinite direct product. For example,
$$
\mathbb Q\otimes_{\mathbb Z}\prod_{n\geq2}\mathbb Z/n\mathbb Z\ne0,
\qquad
\prod_{n\geq2}\left(\mathbb Q\otimes_{\mathbb Z}\mathbb Z/n\mathbb Z\right)=0.
$$
The element $(1\bmod n)_n$ has infinite order in the product, so it survives rational localization.