Hi @Chaitanya Kiran ,
We do not rebuild all index, only Rebuild or Reorganize the necessary Indexes, this depends on fragment percentage as below screenshot. We can using sys.dm_db_index_physical_stats to detect fragmentation. Refer to Detecting the amount of fragmentation.
For rebuild all indexes associated with the table, please refer to Rebuilding all indexes on a table and specifying options.
Please refer to blog Reorganize and Rebuild Indexes in the Database to get more details information.
Best regards,
Cathy
===============================================
If the response helped, do "Accept Answer" and upvote it.