How does the rebuild index process work?

Is there a way to rebuild a search index without maxing out db query limits (for me its 300,000).

The problem im running into is i get...