Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# FormatCurrency(VB) to ToString Pin
Dominic Burford13-Nov-14 5:34
professionalDominic Burford13-Nov-14 5:34 
QuestionStrange thing with AsemblyResolve event Pin
Marcos Bischoff12-Nov-14 4:28
Marcos Bischoff12-Nov-14 4:28 
AnswerRe: Strange thing with AsemblyResolve event Pin
Eddy Vluggen12-Nov-14 8:05
professionalEddy Vluggen12-Nov-14 8:05 
AnswerRe: Strange thing with AsemblyResolve event Pin
Freak3013-Nov-14 1:11
Freak3013-Nov-14 1:11 
QuestionQuick Loading of WPF application Pin
teek1312-Nov-14 2:42
teek1312-Nov-14 2:42 
AnswerRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 5:04
SledgeHammer0112-Nov-14 5:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:32
teek1312-Nov-14 8:32 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 8:59
SledgeHammer0112-Nov-14 8:59 
Well, then there you go, that's why your app is slow to start up.

* how many MB of data are you loading combined?
* unless I misread your explanation, you are also making 20 to 30 or more calls into the web service? That's going to be slow.

You need to reconsider your design.

Do you really need to suck down the entire database at start up? Probably not. Yes, it is easier to code it that way, but it will be a performance hit. Especially for customers with slower connections to your web service.

Without understanding your UI or what this data is, its hard to say.

Is your app an internal business app? If so, using a web service as a middle man is overkill and silly. A better design is to use something like EntityFramework which will automatically grab only the data thats needed. If you need to service external customers, then you'll need a web service, of course.

How is your Web Service configured? REST? XML? Soap? If your client is the only client accessing the service, then using a text based web service is silly and lots of additional overhead to all the data. Switch to NetTCPBinding.

Just tossing some ideas out there based on what you posted... but generally, it looks like you are sucking down the entire database (and adding a lot of overhead to it) at start up when thats really not a good idea.
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:15
professionalEddy Vluggen12-Nov-14 9:15 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:04
teek1312-Nov-14 19:04 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 19:21
SledgeHammer0112-Nov-14 19:21 
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 0:11
teek1313-Nov-14 0:11 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 6:55
SledgeHammer0113-Nov-14 6:55 
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 7:22
teek1313-Nov-14 7:22 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 9:12
SledgeHammer0113-Nov-14 9:12 
AnswerRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 8:04
professionalEddy Vluggen12-Nov-14 8:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:40
teek1312-Nov-14 8:40 
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:14
professionalEddy Vluggen12-Nov-14 9:14 
AnswerRe: Quick Loading of WPF application Pin
Pete O'Hanlon12-Nov-14 9:43
mvePete O'Hanlon12-Nov-14 9:43 
AnswerRe: Quick Loading of WPF application Pin
NickPace12-Nov-14 10:45
NickPace12-Nov-14 10:45 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:20
teek1312-Nov-14 19:20 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:56
arvindnitin711-Nov-14 5:56 
AnswerRe: image to text converter program Pin
Ravi Bhavnani11-Nov-14 5:59
professionalRavi Bhavnani11-Nov-14 5:59 
AnswerRe: image to text converter program Pin
Pete O'Hanlon11-Nov-14 5:59
mvePete O'Hanlon11-Nov-14 5:59 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:54
arvindnitin711-Nov-14 5:54 

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.