Click here to Skip to main content
15,905,877 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
MarkTJohnson25-Feb-22 8:40
professionalMarkTJohnson25-Feb-22 8:40 
JokeRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
englebart15-Feb-22 17:00
professionalenglebart15-Feb-22 17:00 
AnswerRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:42
jschell30-Dec-21 7:42 
Questionquantum computing Pin
Calin Negru28-Dec-21 7:13
Calin Negru28-Dec-21 7:13 
AnswerRe: quantum computing Pin
Gerry Schmitz28-Dec-21 7:25
mveGerry Schmitz28-Dec-21 7:25 
GeneralRe: quantum computing Pin
Calin Negru2-Jan-22 2:48
Calin Negru2-Jan-22 2:48 
AnswerRe: quantum computing Pin
Member 155103601-Feb-22 1:41
Member 155103601-Feb-22 1:41 
QuestionRefactoring a Slow UI Pin
Kevin Marois21-Dec-21 9:01
professionalKevin Marois21-Dec-21 9:01 
I have a WPF app that is part of a basic n-tier design. UI <=> BL <=> DAL. It's been under construction for a while and we just keep adding features to it.

At some point in the future, 6 months or so, the BL and DAL will be hosted in a Web API in IIS on the client's server.

Right now, parts of the UI are VERY slow. There is a Project view with a detail section on top and sub tabs below. All of the data is being brought back as soon as the project is opened, and it takes a long time.

I want to do some refactoring, such as:
  1. Lazy load the sub tabs. However, some tabs cannot be loaded unless data from other tabs is there. Other tabs are stand-alone.
  2. Everything is synchronous. Make back end calls async.
  3. If a tab's data is changed, for the most part the other tabs don't know about it. A few raise a changed event, but for the most part, the Project needs to be reloaded. Changes from other users are not reflected at all until the Project is reloaded. So I could keey the local data synchronized, but for data from other users, provide change notification somehow.
These are the top 3 issues. The big one is the load/save time.

For the Project opening load time and save time issue, one idea I've had is to create a 'package', which would just be a class with only the data that is needed to load the Project, and asynchronously call that when the tab is opened. Then, lazy load tabs as needed. They also would use the package concept to get only the data needed to populate that tab, which could be one or more lists of entities.

On save, load & send the Package class with only the data that has changed back to the DAL.

I'd like to hear what you guys think.

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Refactoring a Slow UI Pin
englebart15-Feb-22 17:21
professionalenglebart15-Feb-22 17:21 
Question[Solved] Opinions on two code layout alternatives? Pin
RobertSF10-Dec-21 10:43
professionalRobertSF10-Dec-21 10:43 
AnswerRe: Opinions on two code layout alternatives? Pin
Gerry Schmitz11-Dec-21 6:08
mveGerry Schmitz11-Dec-21 6:08 
GeneralRe: Opinions on two code layout alternatives? Pin
RobertSF11-Dec-21 7:09
professionalRobertSF11-Dec-21 7:09 
GeneralRe: Opinions on two code layout alternatives? Pin
Gerry Schmitz11-Dec-21 7:43
mveGerry Schmitz11-Dec-21 7:43 
GeneralRe: Opinions on two code layout alternatives? Pin
RobertSF11-Dec-21 11:44
professionalRobertSF11-Dec-21 11:44 
AnswerRe: Opinions on two code layout alternatives? Pin
englebart29-Dec-21 15:56
professionalenglebart29-Dec-21 15:56 
GeneralRe: Opinions on two code layout alternatives? Pin
RobertSF2-Jan-22 13:10
professionalRobertSF2-Jan-22 13:10 
QuestionDocumentation or modeling tool for a DB-application Pin
Member 1331165719-Nov-21 19:43
Member 1331165719-Nov-21 19:43 
AnswerRe: Documentation or modeling tool for a DB-application Pin
Gerry Schmitz1-Dec-21 18:29
mveGerry Schmitz1-Dec-21 18:29 
AnswerRe: Documentation or modeling tool for a DB-application Pin
Mycroft Holmes2-Dec-21 11:01
professionalMycroft Holmes2-Dec-21 11:01 
GeneralRe: Documentation or modeling tool for a DB-application Pin
Member 133116573-Dec-21 4:55
Member 133116573-Dec-21 4:55 
GeneralRe: Documentation or modeling tool for a DB-application Pin
Mycroft Holmes3-Dec-21 11:29
professionalMycroft Holmes3-Dec-21 11:29 
QuestionAsync design Pin
Mycroft Holmes10-Nov-21 11:31
professionalMycroft Holmes10-Nov-21 11:31 
AnswerRe: Async design Pin
Gerry Schmitz10-Nov-21 20:26
mveGerry Schmitz10-Nov-21 20:26 
AnswerRe: Async design Pin
Richard Deeming10-Nov-21 21:39
mveRichard Deeming10-Nov-21 21:39 
GeneralRe: Async design Pin
Mycroft Holmes11-Nov-21 12:29
professionalMycroft Holmes11-Nov-21 12:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.