I am studying system design for distributed systems and in this page (https://github.com/donnemartin/system-design-primer), one of the following advantages was mentioned for federation for databases was:
Smaller databases result in more data that can fit in memory, which in turn results in more cache hits due to improved cache locality.
What I don't understand is why would smaller databases have more memory? Furthermore, how does federation improve cache locality and result in more cache hits?