willkg/kitsune — comment on commit 79df8ead1002b2409aab2bc834e1041ca82a02de
File: apps/search/es_utils.py line 109
By willkg:

I'm not sure I understand the question.

The t > total: break check is how we implemented the --percent behavior where it indexes just a percentage of the database rather than the whole thing. I moved the t > total: break bit to the top of the loop figuring it's silly to spend all the time doing other things if we're done.

Does that answer the question?