Is it better to sort records in the database server or in the application server? In my case the database server and the application server are identical instruments. I have 40 million records in a table consisting of open, closed and suspended sales orders. I want to pull only the open orders by date. I have 10 indexes, none of which have both order type and date. Order type is my only choice. I will be pulling 4 million open records by order type of which 1 million will qualify. My choices are: I can pull all 4 million open orders in the application server with packet size and find my 1 million records using date. Second choice is I can use the where clause and get the records = open and date > the date I desire. In the second case I believe that I will get the 4 million records into the database memory, sort in the database memory and find my 1 million records by date. I still have to transfer the 1 million records to the application server by package size to eliminate paging. Putting in another index is not an option in this case. Which would you recommend and why?
It depends! It depends on your hardware configuration, and software. In your case, where DB server and app server are identical, I'd suggest that the DB is the place to do the operation. But I think this is a case of try it, and see which is faster.
Have you considered using parallel processing to get the information from the database? If it is a multiple processor, with mirroring or RAID, then this could boost performance considerably.
Dig Deeper on SAP integration
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header.
Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order.
Continue Reading
An SAP user needs information on how to change the password on several SAP user accounts from a central location.
Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Start the conversation
0 comments