Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can any one suggest how to improve the performance of procedure ?
please suggest every thing including alternative code or indexes on which column etc.
hint: i did not create any constraints and indexes on both tables.
Posted
Updated 26-Oct-15 1:56am
v2

Quote:
hint: i did not create any constraints and indexes on both tables.
If both tables are not indexed, creating a index on Email on both tables will have dramatic effects on performance.
If this is not obvious to you, I guess you have lot of reading to plan for this winter.
Read about principles of SQL and about databases principles.
 
Share this answer
 
v2
This is a massive topic that whole books have been written on so I suggest you google for existing articles on stored procedure or query performance.

Your question as it stands is impossible to answer as there is no "one size fits all" answer for improving performance. If you add indexes then it will speed up SELECTs but slow down INSERTs and DELETEs. There are many many factors, it is a complex subject, and as you haven't said exactly what your SPs do it is impossible to give specific advice.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900