graph view optimization