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

  • Home
  • SEARCH
  • 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 7947665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:29:56+00:00 2026-06-04T01:29:56+00:00

I try to construct 3-tier application. In DAL I get data from database (

  • 0

I try to construct 3-tier application. In DAL I get data from database (No-SQL) to DataSets.
In BLL I process this data if it is necessary. In PL I show appropriate data.

The question is:
If data in database are still updating, and I need to have at once newest ‘rows’, should I update DataSet in BLL with some timer or somewhere else?

  • 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-04T01:29:58+00:00Added an answer on June 4, 2026 at 1:29 am

    When you say “at once” I have to assume that your application is very eager on data… for that you should use a 4th layer between your DLL and BLL and called Cache.

    As it seams that you want things fast, and for fast things, you never call the database over and over, you call once and when there’s an update, you clear the cache on that entity and next time your BLL asks the data, the cache is empty so it passes to the DAL to retrieve a new set of records, putting it in the cache for the next call.

    To be alert with updates you can do your own notification system, or simple implement the INotifyCollectionChanged interface…

    If you do not want to take all this trouble, when you send the new row to be changed, you already have the data, you can easily add it to the grid (or any colection object that you are using) with a simple

    DataTable dt = bll.ListAllEmployeesByCompanyId( 2 );
    dt.Rows.Insert(0, myNewRow);
    gv.DataSource = dt;
    

    You can easily create a nice UX by making a top border in that grid and make it yellow (as the data did not come from the database) and turn it into light green when the data come all from the database (and all is in sync) …

    It’s all up to your strategy, it’s always down to the one and only question for every software we develop:

    Does the user really care about that awesome feature?

    Because, we developers tend to assume a lot, and sometimes, you do assume wrongly 🙂

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

Sidebar

Related Questions

I'd like to try to construct main.xml like in this application. Actually, I want
Try running this in a .VBS file MsgBox(545.14-544.94) You get a neat little answer
I try to realize simple code on perl which should just get/send messages from/to
I am try to construct immutable Sets/Maps from a Seq. I am currently doing
I get this error when I try to use namespaces. I have namespace App;
I am new to android and try to construct this layout using TableLayout. I
Using a basic Http Post example, try { // Construct data String data =
I construct a string with a value I get from another activity: Bundle b
This is a followup question to this Should I stick with the Try/Catch/Finally construct,
Try as I might I cannot get my head around what the IteratorIterator class

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.