GeekInterview.com
Series: Subject: Topic:
Question: 21 of 195

Improve Performance of Program

How would you go about improving the performance of a Program, which selects data from MSEG & MKPF?
Asked by: ajaysumeer | Member Since Jul-2008 | Asked on: Jul 30th, 2008

View all questions by ajaysumeer

Showing Answers 1 - 3 of 3 Answers
jowharfazal

Answered On : Sep 1st, 2008

View all answers by jowharfazal

Use date ranges to read mkpf data and save them in an internal table. Looping through the internal table, read MSEG, preferably filtering more using any possible selection criteria, to another internal table. Loop through the internal table for further processing. Make sure to read only the required fields from the Tables.

  
Login to rate this answer.


1.In select query u can use only select field1 field2.......(wat r the fields u want write it)
2.Don user select * in selcet query.
3.You can always use where condinton in select query.
4. dont go for joins .
5.Alway use for FOR ALL ENTRIES to link the two internal table.
6. dont write any state ment with in the loop.


Regards,
sankaran Ramaiah

Yes  1 User has rated as useful.
  
Login to rate this answer.

hi,
In the select query,select only required fiedls Based on the table structure.
2) Once the data selected into internaltable after that sort the filed based on the key fileds
3) use the read statement and binary search
4) use the where condition in the select query.




Regards,
Sankarna R

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.