title: boost.asio and queries to the database
body: <p>I am writing a network application in C++ using boost.asio.</p>
  
  <p>I need to do three things:</p>
  
  <ol>
  <li>make a connection from a client </li>
  <li>make a request to the database</li>
  <li>return the result to the client.</li>
  </ol>
  
  <p>All operations except 2 are nonblocking. But during the database query all of the application is blocked and non-performing other customers.</p>
  
  <p>How can I be in this situation?</p>