dengzhhu653 commented on PR #6636:
URL: https://github.com/apache/hive/pull/6636#issuecomment-5434331624

   The rebuild scripts took me a lot of eyes, yet I still haven't checked 
through all of them for
   1.  Do them cover all the indexes to be built?
   2. Will the command take long time, and the lock it will hold?
   
   Just think aloud, how could if we just rebuild the missing indexes other 
than all of them, this saves time, so reducing downtime and minimizing outages 
for HMS if just a few indexes to be rebuilt.
   
   To do this, the new `rebuildIndexes` command requires an `redb` argument, 
the `redb` which we can create if allowed, is an empty database where we 
initialize the hive schema upon this command runs, then the `rebuildIndexes` 
compares the original database with this `redb` to find the missing or 
in-correct indexes, and creates them by the index from `redb`, similar to your 
prior PR.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to