How to get features by their attributes (similar to 'IQueryFilter' in ArcObjects) in QGIS using Python? Instead of getting all features and filter it manually, is there any option to use where clause to filter it out?
Example: I have a field name called
"Counties". It has more than fifty thousand of features i.e not possible to fetch all features and filter it because of time consuming. So i can query it by using
iqueryfilter.whereclause = 'Counties = Norwich' in ArcObjects. Similar thing I need in PyQGIS.