The basic idea is to keep data as close to the processor as possible, so with a database that means storing the result of commonly used queries in memory.
There’s no need to migrate the database, that shouldn’t be an issue at this size. Caching should be implemented as another comment suggested.
The basic idea is to keep data as close to the processor as possible, so with a database that means storing the result of commonly used queries in memory.