The speed of a database is determined by the memory available to cache indexes and everything else. You can get real performance problems from limited memory or memory settings that no longer match the data in use. Memcache is a separate configuration, easy to set, and usually reliable unless you configure so much memory that you make the system page everything out.
On my test system, a file cache is almost as fast because Linux has enough memory to cache all the file information.