Cred Interview Question | Improve Performance
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 2 )
1) Avoid unnecessary joins
2) Create indexes
3) Avoid * in SELECT statement if all columns are not required.
4) Choose appropriate DataTypes for storing data.
5) Avoid cursors as cursors are slow in performance.
1. Use indexes efficiently
2. Create all primary and foreign keys and relationships among tables.
3. Avoid using Select*, rather mention the needed columns and narrow the resultset as needed.
4. Reduce joins and heavy clauses like GROUP BY if not needed
5. Implement queries as stored procedures.
6. Use data types wisely
7. Instead of NULLS use string values such as N/A