query optimization in catalog.views.catalog_list