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 789605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:33:03+00:00 2026-05-14T21:33:03+00:00

I have ~10,000 records would like to keep in a collection in memory and

  • 0

I have ~10,000 records would like to keep in a collection in memory and execute LINQ queries against it. This collection should be available for all the users in the application domain and can access concurrently. I’m looking for a .NET collection that supports multithreading can query asynchronously and efficiently without any threading issues. Any suggestions on deciding a collection for this?

Sorry – It is only to read, no updates. And it should NOT be in .NET 4.0

  • 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-05-14T21:33:04+00:00Added an answer on May 14, 2026 at 9:33 pm

    Do you need to update it? If not, any of the usual suspects (e.g. List<T> or an array) should be fine. If there’s a natural key you want to look things up by, you may want to use a dictionary instead, but if it’s really “just a collection” then a list should be fine.

    EDIT: It looks like the rest of this answer is irrelevant to this particular question, but I’ll leave it here for others with slightly different requirements.

    If you do need to update it – and if you’re able to use .NET 4 – you should at least consider ConcurrentBag. Bear in mind that it’s unordered, and that if you iterate over it and modify the bag concurrently you won’t see the changes (it’s a snapshot, according to the docs), but if that’s okay, it may well be what you’re after.

    If that doesn’t quite do what you want, have a look at the other collections in the System.Collections.Concurrent namespace – again, this is all for .NET 4.

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

Sidebar

Related Questions

I have a table with 1,000,000+ records and I would like to find the
I have a table (customer) with 10,000 records. I would like to modify every
I have table with 300 000 records (MyISAM). I get record from this table
I have a cfinvoke which writes to a table like 200,000 records. Then I
I have ~25.000 distinct names in an SQL database, and would like to perform
I have several million records in a table (book/media data) and I would like
i have total 70,000 records in database. currently i displays all the records in
i have a table with about 200,000 records. i want to add a field
I have a database with 12,000 records with various attributes. One of them is
I have a SQL Server database with 500,000 records in table main . There

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.