I have started using GeoServer and PostgreSQL combination to render polygons (more than 4000) on Google Map. Everything seems to be fine.
However, when I zoom the map, layers are redrawn very slowly on browser.
These polygons are not fixed. I get information about which polygons need to be displayed from a web page and then from PostgreSQL view. Therefore I have passed viewParams in WMS service of GeoServer.
I use GeoWebCache.
But the problem I described above does not solve from GeoWebCache. Is there anything that I can try to improve performance?