Observed that some SP’s / Jobs are processing late, how to
troubleshoot to improve performance?
Answer / neetu
U have to optimize SP for that
1. Use as much as possible WHERE clause filters. Where
Clause is the most important part for optimization
2. Select only those fields which really require.
3. Joins are expensive in terms of time. Make sure that use
all the keys that relate the two tables together and don't
join to unused tables, always try to join on indexed fields.
The join type is important as well (INNER, OUTER).
Is This Answer Correct ? | 3 Yes | 0 No |
Name 3 ways to get an accurate count of the number of records in a table?
What are the properties of sub-query?
What is postgresql server?
how to replace double quotes by single quotes in sql server
What is dynamic cursor in SQL SERVER?
you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration
What is a system database and what is a user database?
How to delete database objects with "drop" statements in ms sql server?
There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?
What is the purpose of grouping data in a report?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What is an example of a primary key?