Click here to Skip to main content
15,896,486 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Follow up on If you had 5 years to live Pin
SoMad10-Jan-14 8:44
professionalSoMad10-Jan-14 8:44 
GeneralRe: Follow up on If you had 5 years to live Pin
Mike Hankey10-Jan-14 9:08
mveMike Hankey10-Jan-14 9:08 
GeneralRe: Follow up on If you had 5 years to live Pin
SoMad10-Jan-14 9:12
professionalSoMad10-Jan-14 9:12 
JokeRe: Follow up on If you had 5 years to live Pin
ZurdoDev10-Jan-14 8:56
professionalZurdoDev10-Jan-14 8:56 
GeneralRe: Follow up on If you had 5 years to live Pin
Mike Hankey10-Jan-14 9:09
mveMike Hankey10-Jan-14 9:09 
GeneralHow to deal with that Kurmudgen Pin
MacSpudster10-Jan-14 11:37
professionalMacSpudster10-Jan-14 11:37 
GeneralRe: How to deal with that Kurmudgen Pin
Mike Hankey10-Jan-14 13:23
mveMike Hankey10-Jan-14 13:23 
GeneralMind...Blown Pin
IndifferentDisdain10-Jan-14 8:12
IndifferentDisdain10-Jan-14 8:12 
For the life of me, I can't explain this. This isn't intended to be a programming question, more a "nope, don't believe it, even if I'm seeing it" thing.

We host our main app's data in SQL Azure, and we have information in a given table w/ part of the primary key as a datetime (has month-end mutual fund data). One particular function seemed to be taking too long, so we started investigating this afternoon.

If I run a given statement w/ asofdate = '11/30/2013, query takes 20 seconds. Seems slow.

If I run the same statement, changing only asofdate = '10/31/2013', query takes 0.1 seconds. Odd. No significant # of diff recs between those two dates (26,488 for Nov vs. 26,382 for Oct).

So now I'm thinking it's either the way those 11/30 recs were physically stored, or something special about that particular date, until...

If I run the same statement w/ asofdate >= '11/30/2013' (most recent date in db right now), it again takes 0.1 seconds.

Cannot replicate anything close to this in our on-site SQL Server dev dbs.

How the elephant can asofdate >= '11/30/2013' ever be faster than = '11/30/2013'?

modified 10-Jan-14 16:07pm.

GeneralRe: Mind...Blown Pin
GuyThiebaut10-Jan-14 8:25
professionalGuyThiebaut10-Jan-14 8:25 
GeneralRe: Mind...Blown Pin
IndifferentDisdain10-Jan-14 8:27
IndifferentDisdain10-Jan-14 8:27 
GeneralRe: Mind...Blown Pin
GuyThiebaut10-Jan-14 8:38
professionalGuyThiebaut10-Jan-14 8:38 
GeneralRe: Mind...Blown Pin
Pualee10-Jan-14 8:35
Pualee10-Jan-14 8:35 
GeneralRe: Mind...Blown Pin
IndifferentDisdain10-Jan-14 8:52
IndifferentDisdain10-Jan-14 8:52 
GeneralRe: Mind...Blown Pin
GuyThiebaut10-Jan-14 23:17
professionalGuyThiebaut10-Jan-14 23:17 
JokeRe: Mind...Blown Pin
Richard Deeming10-Jan-14 8:35
mveRichard Deeming10-Jan-14 8:35 
GeneralRe: Mind...Blown Pin
IndifferentDisdain10-Jan-14 8:53
IndifferentDisdain10-Jan-14 8:53 
GeneralRe: Mind...Blown Pin
Ravi Bhavnani10-Jan-14 10:06
professionalRavi Bhavnani10-Jan-14 10:06 
GeneralRe: Mind...Blown Pin
IndifferentDisdain10-Jan-14 10:08
IndifferentDisdain10-Jan-14 10:08 
GeneralRe: Mind...Blown Pin
Ravi Bhavnani10-Jan-14 10:16
professionalRavi Bhavnani10-Jan-14 10:16 
AnswerRe: Mind...Blown Pin
IndifferentDisdain10-Jan-14 10:21
IndifferentDisdain10-Jan-14 10:21 
GeneralRe: Mind...Blown Pin
Ravi Bhavnani10-Jan-14 10:23
professionalRavi Bhavnani10-Jan-14 10:23 
GeneralRe: Mind...Blown Pin
_Maxxx_10-Jan-14 14:46
professional_Maxxx_10-Jan-14 14:46 
GeneralRe: Mind...Blown Pin
_Damian S_12-Jan-14 12:10
professional_Damian S_12-Jan-14 12:10 
GeneralWhile listening to The Who Pin
Ferd Really10-Jan-14 6:48
Ferd Really10-Jan-14 6:48 
GeneralRe: While listening to The Who Pin
DaveAuld10-Jan-14 7:19
professionalDaveAuld10-Jan-14 7:19 

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.