Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
SuggestionRe: file based username and pass Pin
Syed M Hussain6-Nov-14 9:56
Syed M Hussain6-Nov-14 9:56 
GeneralRe: file based username and pass Pin
techker26-Nov-14 10:53
techker26-Nov-14 10:53 
QuestionBest Integrated Database Solution Pin
Paweł Mrozik5-Nov-14 6:54
Paweł Mrozik5-Nov-14 6:54 
AnswerRe: Best Integrated Database Solution Pin
PIEBALDconsult5-Nov-14 7:09
mvePIEBALDconsult5-Nov-14 7:09 
GeneralRe: Best Integrated Database Solution Pin
Paweł Mrozik5-Nov-14 10:30
Paweł Mrozik5-Nov-14 10:30 
QuestionHandling large data objects in codes or other options? Pin
sysmatrix5-Nov-14 2:04
sysmatrix5-Nov-14 2:04 
AnswerRe: Handling large data objects in codes or other options? Pin
Johnny L Washington5-Nov-14 2:22
Johnny L Washington5-Nov-14 2:22 
AnswerRe: Handling large data objects in codes or other options? Pin
V.5-Nov-14 3:10
professionalV.5-Nov-14 3:10 
Tricky since we don't know what you need to report, but pulling 5-20 million records into memory seems a bad idea in any case. let the server do the work. There are numerous options available to you to speed up things.

You could calculate statistics "continuously" in the background so when you pull the report (or stats) you have a much less work on getting it out. Calculating counts, sums, averages etc... is pretty though on resources and time when using large datasets. If you analyze your queries you can probably optimize all this, but remember that aggregate functions render any index on that column useless.

Another option would be to write a server side module that receives a "task" and notifies the user when it's done. You could write it in such a way that it consumes less memory, but it will probably take longer. You could optimize this maybe by using several threads.

Both solutions have the downfall that when many users launch these calculations, the server comes to a standstill. Your best bet is to probably divide all this in bits and pieces that calculate seperately.

If this is a real production database and the calculations are often en significant I'd recommend a new database optimized for reporting and go from there. (Database structures and setup can be different depending on the usage of the database)

Just to give you some ideas. I have rarely seen "real-time" statistics on large datasets, rather they have a delay (eg statistics on my database are quite simple, but due to the size only calculated once a day)

hope this helps...
V.

(MQOTD rules and previous solutions)

AnswerRe: Handling large data objects in codes or other options? Pin
Chris Quinn5-Nov-14 3:53
Chris Quinn5-Nov-14 3:53 
AnswerRe: Handling large data objects in codes or other options? Pin
Mycroft Holmes5-Nov-14 12:01
professionalMycroft Holmes5-Nov-14 12:01 
GeneralRe: Handling large data objects in codes or other options? Pin
V.5-Nov-14 23:34
professionalV.5-Nov-14 23:34 
GeneralRe: Handling large data objects in codes or other options? Pin
Mycroft Holmes6-Nov-14 11:34
professionalMycroft Holmes6-Nov-14 11:34 
AnswerRe: Handling large data objects in codes or other options? Pin
shaluIT8-Nov-14 14:34
shaluIT8-Nov-14 14:34 
Questionpaging C# windows Form Pin
Ibrahim.elh4-Nov-14 23:42
Ibrahim.elh4-Nov-14 23:42 
AnswerRe: paging C# windows Form Pin
Eddy Vluggen5-Nov-14 0:03
professionalEddy Vluggen5-Nov-14 0:03 
GeneralRe: paging C# windows Form Pin
Ibrahim.elh5-Nov-14 2:40
Ibrahim.elh5-Nov-14 2:40 
GeneralRe: paging C# windows Form Pin
Eddy Vluggen5-Nov-14 2:57
professionalEddy Vluggen5-Nov-14 2:57 
GeneralRe: paging C# windows Form Pin
Ibrahim.elh5-Nov-14 3:01
Ibrahim.elh5-Nov-14 3:01 
GeneralRe: paging C# windows Form Pin
Pete O'Hanlon5-Nov-14 3:09
mvePete O'Hanlon5-Nov-14 3:09 
GeneralRe: paging C# windows Form Pin
Eddy Vluggen5-Nov-14 5:54
professionalEddy Vluggen5-Nov-14 5:54 
GeneralRe: paging C# windows Form Pin
Ibrahim.elh5-Nov-14 21:24
Ibrahim.elh5-Nov-14 21:24 
GeneralRe: paging C# windows Form Pin
Eddy Vluggen5-Nov-14 22:33
professionalEddy Vluggen5-Nov-14 22:33 
GeneralRe: paging C# windows Form Pin
Ibrahim.elh5-Nov-14 22:37
Ibrahim.elh5-Nov-14 22:37 
GeneralRe: paging C# windows Form Pin
Eddy Vluggen6-Nov-14 1:03
professionalEddy Vluggen6-Nov-14 1:03 
GeneralRe: paging C# windows Form Pin
BillWoodruff6-Nov-14 1:08
professionalBillWoodruff6-Nov-14 1:08 

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.