improved rest_views (reduce db load)