Click here to Skip to main content
15,905,776 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: Table join performance - the saga continues... Pin
David O'Neil8-Sep-16 13:26
professionalDavid O'Neil8-Sep-16 13:26 
GeneralRe: Table join performance - the saga continues... Pin
Raybarg12-Sep-16 22:12
professionalRaybarg12-Sep-16 22:12 
GeneralRe: Table join performance - the saga continues... Pin
Jeremy Falcon8-Sep-16 12:42
professionalJeremy Falcon8-Sep-16 12:42 
GeneralRe: Table join performance - the saga continues... Pin
Marc Clifton8-Sep-16 14:05
mvaMarc Clifton8-Sep-16 14:05 
JokeRe: Table join performance - the saga continues... PinPopular
Foothill8-Sep-16 14:18
professionalFoothill8-Sep-16 14:18 
GeneralRe: Table join performance - the saga continues... Pin
Jeremy Falcon8-Sep-16 15:12
professionalJeremy Falcon8-Sep-16 15:12 
GeneralRe: Table join performance - the saga continues... Pin
Foothill8-Sep-16 16:04
professionalFoothill8-Sep-16 16:04 
GeneralRe: Table join performance - the saga continues... Pin
David Crow8-Sep-16 17:13
David Crow8-Sep-16 17:13 
Your argument reminds me of a time I worked for an organization that used a dBase-equivalent as their database engine. It did what it needed to do so there weren't many complaints, except when it came to certain reports. One in particular took nearly an hour to run, so it was only requested as needed. I didn't have much going on one day and I decided to poke around in the code that was in charge of that report. I looked it over and felt confident that I knew what it was doing, something the equivalent of "SELECT * FROM <table>" and then the result set was further processed (e.g., filtering, sorting) by the desktop code. I commented out a few lines of code and changed the query so that the database engine was doing all of the work rather than the desktop code. When I went to test that report, it came back almost instantly, so much so that I just assumed it failed. I did this several times and each time the report was instant and complete. I left it in place so that my supervisor could try it out when he returned. He was obviously skeptical at first, but when he saw it go, it was convincing enough that he told several users out in the business office to try it out too. Much praise was thrown our way.

Moral of the story: design the tables correctly, and let the database engine handle the workload.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: Table join performance - the saga continues... Pin
Mycroft Holmes8-Sep-16 14:57
professionalMycroft Holmes8-Sep-16 14:57 
GeneralRe: Table join performance - the saga continues... Pin
RossMW8-Sep-16 19:38
professionalRossMW8-Sep-16 19:38 
GeneralRe: Table join performance - the saga continues... Pin
Vark1119-Sep-16 2:18
Vark1119-Sep-16 2:18 
GeneralRe: Table join performance - the saga continues... Pin
Richard Deeming9-Sep-16 2:23
mveRichard Deeming9-Sep-16 2:23 
GeneralRe: Table join performance - the saga continues... Pin
Vark1119-Sep-16 2:17
Vark1119-Sep-16 2:17 
GeneralRe: Table join performance - the saga continues... Pin
JohnLBevan8-Sep-16 21:56
professionalJohnLBevan8-Sep-16 21:56 
GeneralRe: Table join performance - the saga continues... Pin
Brady Kelly8-Sep-16 22:19
Brady Kelly8-Sep-16 22:19 
GeneralRe: Table join performance - the saga continues... Pin
Jörgen Andersson9-Sep-16 1:43
professionalJörgen Andersson9-Sep-16 1:43 
GeneralRe: Table join performance - the saga continues... Pin
charlieg9-Sep-16 2:20
charlieg9-Sep-16 2:20 
GeneralRe: Table join performance - the saga continues... Pin
Richard Deeming9-Sep-16 2:27
mveRichard Deeming9-Sep-16 2:27 
GeneralRe: Table join performance - the saga continues... Pin
Middle Manager9-Sep-16 2:52
Middle Manager9-Sep-16 2:52 
GeneralRe: Table join performance - the saga continues... Pin
James Curran9-Sep-16 4:21
James Curran9-Sep-16 4:21 
GeneralRe: Table join performance - the saga continues... Pin
Ryan Peden9-Sep-16 4:26
professionalRyan Peden9-Sep-16 4:26 
GeneralRe: Table join performance - the saga continues... Pin
Kirk 103898219-Sep-16 5:01
Kirk 103898219-Sep-16 5:01 
GeneralRe: Table join performance - the saga continues... Pin
W Balboos, GHB9-Sep-16 5:40
W Balboos, GHB9-Sep-16 5:40 
GeneralRe: Table join performance - the saga continues... Pin
pboy3219-Sep-16 7:49
pboy3219-Sep-16 7:49 
GeneralRe: Table join performance - the saga continues... Pin
Bruce Patin9-Sep-16 8:20
Bruce Patin9-Sep-16 8:20 

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.