Queries can be passed to `source.getFeatures(Query.ALL);` in PostgisReader. This could allow to query for features on the server side which would be a lot faster than on the client side.