mozilla/kitsune — pull request #549 by willkg (2012-03-28 18:03:26+00:00)
Title: 733102 es and db

Oo--I'm using the newly placed "pull request" button that reduces my need to select the branch from the list. I kind of like it.

Anyhow, this fixes some tests, then reworks the search_view_es so it doesn't touch the db at all. Good explanation of what changed in the commit comments.

Things to pay attention to for a peer review:

* I had to rename some things in the index. I'm pretty sure I got the renaming correct, but it's worth double-checking num_votes vs. num_votes_past_week.

Mmm... actually that's it. The rest is pretty straight forward.

I think this will have some improvement to performance, but since db activity is cached and it's pretty small already for the search view, I don't think it'll be noticeable like the previous performance changes were.

r?