In this article, we will introduce how to transform a large-scale database program from threads to coroutines.