Using Dapper's Multi-Results Feature

Learn to use Dapper's multi-results feature.

We'll cover the following

There is another feature in Dapper that helps us reduce the amount of database roundtrips called multi-results. We are going to use this feature to improve the performance of the endpoint that gets a single question, which, at the moment, is making two database calls. To do that, follow these steps:

  1. First, let's load test the current implementation by using WebSurge. Select the “Session” tab, highlight the first request in the list, and click the “Edit” option:

Get hands-on with 1200+ tech skills courses.