I'm working on a PostgreSQL database with PostGIS. I need to filter an 8 million records table in order to publish a view through geoserver.
I know two ways to do that, one is that I create view in PostgreSQL to filter the data and publish on geoserver, the other one is let the geoserver making the filtering using sld.
My question is that which one is the better solution regarding to gain better performance.