Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Re: How do I optimize my code?

$
0
0

Hi,

 

 

Actually Its better for you to optimize the code based on some of the performance tuning methods , Rather than we are doing and giving,

 

Please Follow the below mentioned steps,

 

1. Try to fetch the data from table based on the primary index. This is the most fastest way for          fetching data.

Primary index  comprises all the key fields of the corresponding table.So in where condition try to use all these fields.

 

2. Try to avoid using more conditions in where clause as it creates load for database optimizer.

3. Try to avoid select inside loop.

4. Use Joins / For all entries for  fetching data from related tables rather than using nested selects.

5. Avoid using select *.

6. Avoid using into corresponding fields.

7. Avoid using operators like < , > ,<= etc if possible.

8. Before using for all entries, Check the Reference internal table is initial or not.

 

There are lot of documents available for performance tuning, Please go through that documents for more information.

 

Thanks and Regards,

Sajeesh


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>