Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:13:36+00:00 2026-06-05T01:13:36+00:00

If a data reader releases data as it receives it, then using enumerables should

  • 0

If a data reader releases data as it receives it, then using enumerables should allow that data to be immediately sent back to callers from a data access function.

If I use List based methods then callers would be waiting for all of the data to be received since the entire reader must be “enumerated” to be converted to a list.

Is this understanding correct and as a result is it generally faster to avoid using lists for returning collections when writing data access code using data readers?

I am implying probably using a yield return in the data access function using the reader vs. initializing a list of objects and adding objects to a list which is then returned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:13:38+00:00Added an answer on June 5, 2026 at 1:13 am

    That’s correct. Not only that it’s immediate, because of lazy evaluation, but it also prevents unnecessary memory allocation, since you are only dealing with one row at a time.

    Large amounts of data are best being left in the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to using a SQL data reader to move records from one
I am using back camera to read bar code data...and it is scanning perfectly.Now
I use a OleDb data reader to read a number of records, and then
I want to read from my response data reader object the column name and
I am currently using a sql data reader (in vb.net) to extract an article
I've heard from a couple of different sources that when using HTML helpers in
What method do I have to override so as to extend Ext.data.reader.Json (for a
I am using csv.reader to read file but it giving me whole file. file_data
I'm writing a jQuery plugin to render data retrieved from another domain in an
Im using a couple of JSON calls to render data, etc etc. In order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.