Click here to Skip to main content
15,744,831 members
Home / Discussions / C#
   

C#

 
Questionwebsite performance Pin
IMQ6-Feb-12 1:15
IMQ6-Feb-12 1:15 
AnswerRe: website performance Pin
J4amieC6-Feb-12 1:51
J4amieC6-Feb-12 1:51 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 
AnswerRe: website performance Pin
Abhinav S6-Feb-12 2:38
Abhinav S6-Feb-12 2:38 
GeneralRe: website performance Pin
J4amieC6-Feb-12 3:27
J4amieC6-Feb-12 3:27 
AnswerRe: website performance Pin
OriginalGriff6-Feb-12 3:15
mvaOriginalGriff6-Feb-12 3:15 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 
GeneralRe: website performance Pin
OriginalGriff6-Feb-12 21:47
mvaOriginalGriff6-Feb-12 21:47 
Probably not - it is storing redundant information (i.e., you can calculate it from the two dates) so it introduces the possibility of the two sets of info being out of step - which can cause some horrible-to-spot intermittent bugs. If you are going to be using it really, really often (like on 50,000 records per second) then it could be worth the extra storage and space, but otherwise the really time consumer is going to be setting up the DB connection and accessing the data anyway. If you are really worried, you could move the calculation to the SQL Server by doing it as part of the query but frankly, given this is a website thing, if the extra cost of a DateTime subtraction is a major problem to your webserver then you seriously need to look at an upgrade! (Or a massive overhaul of your website as a whole)
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: website performance Pin
OriginalGriff6-Feb-12 22:57
mvaOriginalGriff6-Feb-12 22:57 
GeneralRe: website performance Pin
IMQ6-Feb-12 23:28
IMQ6-Feb-12 23:28 
GeneralRe: website performance Pin
OriginalGriff6-Feb-12 23:45
mvaOriginalGriff6-Feb-12 23:45 
GeneralRe: website performance Pin
IMQ6-Feb-12 23:55
IMQ6-Feb-12 23:55 
GeneralC#.Net Pin
Dnyanesh Wahiley5-Feb-12 18:13
Dnyanesh Wahiley5-Feb-12 18:13 
GeneralRe: C#.Net Pin
Abhinav S5-Feb-12 18:57
Abhinav S5-Feb-12 18:57 
GeneralRe: C#.Net Pin
OriginalGriff5-Feb-12 21:26
mvaOriginalGriff5-Feb-12 21:26 
GeneralRe: C#.Net Pin
BillWoodruff6-Feb-12 10:01
professionalBillWoodruff6-Feb-12 10:01 
GeneralC#.Net Pin
Dnyanesh Wahiley7-Feb-12 5:21
Dnyanesh Wahiley7-Feb-12 5:21 
Questionrdlc - subreport ? C# 2010 Pin
Paramu19734-Feb-12 23:33
Paramu19734-Feb-12 23:33 
AnswerRe: rdlc - subreport ? C# 2010 Pin
thatraja5-Feb-12 4:56
professionalthatraja5-Feb-12 4:56 
GeneralRe: rdlc - subreport ? C# 2010 Pin
Paramu19736-Feb-12 18:27
Paramu19736-Feb-12 18:27 
Questionusing TPL in Com add in excel Pin
PozzaVecia4-Feb-12 20:32
PozzaVecia4-Feb-12 20:32 
QuestionGetting Windows Login/Logout Time Pin
AmbiguousName4-Feb-12 8:45
AmbiguousName4-Feb-12 8:45 
AnswerRe: Getting Windows Login/Logout Time Pin
Abhinav S4-Feb-12 21:22
Abhinav S4-Feb-12 21:22 
GeneralRe: Getting Windows Login/Logout Time Pin
AmbiguousName5-Feb-12 20:38
AmbiguousName5-Feb-12 20:38 
GeneralRe: Getting Windows Login/Logout Time Pin
Abhinav S5-Feb-12 21:42
Abhinav S5-Feb-12 21:42 

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.