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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:55:59+00:00 2026-05-23T17:55:59+00:00

I am having a little trouble deciding how to structure an application that I

  • 0

I am having a little trouble deciding how to structure an application that I am building.

The application is required to parse through text-based files (one record per line) and load all of the information into memory. There are typically anywhere from 100,000 – 500,000 records. After that, the data must be displayed in the form of tables and very detailed graphs/charts for further analysis.

The user must have the ability to customize the view of this data. For example, there are many different “types” of log records (TypeA_Log, TypeB_Log, etc.) The user should have the ability to select/deselect these types, which will show/hide them from the display. There are several other types of filtering going on (filter by date, etc.)

—

Essentially what I have now is this:

I have a class structure that represents the various types of log records.

There is a Singleton pattern to hold all of the data (almost like a database in memory), which includes Lists<> of log record instances.

Then, I have a “filter” class which contains information about what the user would like to view. The “filter” gets passed into the Data-Singleton, and then returned a subset of the data. I am basically using C# lambda expressions to select data from a List<> of Log Records, similar to how you might pass in a SELECT statement to a SQL database.

—

This is working okay, but I have to think there is a better way of handling this. Right now, anytime the user makes even the smallest change (for example, selects/deselects one of the many types of log records, a new data set has to be retrieved from the Data-Singleton, and then all of the tables and charts have to be refreshed/rebinded/recomputed to reflect this change. All I really want to do, in most cases, is show/hide certain things.

I am using C# .NET 3.5.

  • 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-23T17:56:00+00:00Added an answer on May 23, 2026 at 5:56 pm

    You could build some sort of internal notification system, something also called event dispatcher.

    Lets say have a record changed in one form, and instead of reloading other dependent forms, you fire the event that some record has changed (attach the record with some custom EventArgs), and let your dependent forms decide on event handling should they include this new record somewhere. You could update the changed data in the collections of the dependent forms.

    However, this can create some concurrency problems (when you avoid rooundtrips to the database (text files in your case) )…

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

Sidebar

Related Questions

I've building an XML editor and am having a little trouble parsing XML files
I'm having a little trouble building my application as Release in Visual Studio 2008.
I'm having a little bit of trouble making a sticky form that will remember
In the context of Scheme and CPS conversion, I'm having a little trouble deciding
I am having a little trouble retrieving the values from a JSON object that
I'm having a little trouble getting localized resources files to work on Windows Phone
I'm having a little trouble building the grids for a Battleship game for my
Having a little trouble on this one. I need a way using Jquery/JS to
I'm having a little trouble with converting a text file to a list. the
I'm having a little trouble figuring out exactly how const applies in a specific

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.