willkg/kitsune — comment on commit 5565e77209872048d42a8a9157c628ff31539ff9
File: apps/search/es_utils.py line 67
By willkg:

It skips a bunch of work, though. This function gets called at the end of every request, so seems like it's a good place to not do work we don't have to do.

If this function were longer and/or wasn't in a critical path, I'd change it, but I think in the current circumstances, it's better to leave it as it is.