Depending on the DB implementation, it’s either because you’re accessing an in-memory database (saving I/O time) or indexing/caching. There are other possibilities (lower-level languages have way, way less overhead. Like, orders of magnitude less), but that will get you most of the way to explaining the difference.
Latest Answers