CHeighlund
Programmer
I have a program I'm working on that withdraws information from a database and displays it in a grid on the screen. Due to the way I need to present the information, the program has to pull off three nested database calls, alongside a few others in the middle. (Call one gets all field y values associated with user-chosen field x. Call two gets all field z values associated with each field y so found. Call three gets all presented data associated with each field z so found.)
Due to the hoops I'm jumping through to get the presentation of the data correct, it takes a while to burn my way through from the first values returned to the last ones. Because of this, my boss has requested that I put a 'break' button in the process that would stop the database withdrawals. I can see how I'd do this fairly easily (have the button click on a global boolean and check for it during the loop, breaking if found) but what would this be likely to do to my database connections?
Due to the hoops I'm jumping through to get the presentation of the data correct, it takes a while to burn my way through from the first values returned to the last ones. Because of this, my boss has requested that I put a 'break' button in the process that would stop the database withdrawals. I can see how I'd do this fairly easily (have the button click on a global boolean and check for it during the loop, breaking if found) but what would this be likely to do to my database connections?