hosts#index: save a lot of sql queries