Skip to content

Commit

Permalink
Update query-future.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMagnan authored Aug 17, 2018
1 parent 560e0fa commit c465906
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/pages/features/query-future.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# QueryFuture

## Description
Every time an immediate method like **ToList** or **FirstOrDefault** is invoked on a query, a database round trip is made to retrieve data. While most applications don't have performance issues with making multiple round trips, batching multiple queries into one can be critical for some heavy traffic applications for scalability. Major ORM like NHibernate had this feature for a long time but, unfortunately for Entity Framework users, batching queries is only available through third party libraries.
Every time an immediate method like **ToList** or **FirstOrDefault** is invoked on a query, a database round trip is made to retrieve data. While most applications don't have performance issues with making multiple round trips, batching multiple queries into one can be critical for some heavy traffic applications for scalability.

**EF Classic Query Future** opens up all batching future queries features for Entity Framework users.

To batch multiple queries, simply append **Future** or **FutureValue** method to the query. All future queries will be stored in a pending list, and when the first future query requires a database round trip, all queries will be resolved in the same SQL command.

### Provider Supported
- SQL Server

## Future

### Example
Expand Down

0 comments on commit c465906

Please sign in to comment.