I want to use async/await for database, but I don't know how to do it.
And I found that mongodb has a async/await driver based on async conections.
But levelDB is not async.
What should I do?
I read the tokio document, may be I can use spawn_blocking to run a async io-task.
Is it right? If I frequently use spawn_blocking, will it affect the performance?