Re: [QGIS-Developer] Python script to count the number of feature for each unique values

2019-02-26 Thread kimaidou
Thanks a lot Nyall, setting the NoGeometry flags and subset of fields does improve the speed by factor 3 for my test layer ( 300k features and 80 (!) fields ) Regards Michaël Le lun. 25 févr. 2019 à 23:48, Nyall Dawson a écrit : > On Tue, 26 Feb 2019 at 03:31, kimaidou wrote: > > > > Hi all,

Re: [QGIS-Developer] Python script to count the number of feature for each unique values

2019-02-25 Thread Nyall Dawson
On Tue, 26 Feb 2019 at 03:31, kimaidou wrote: > > Hi all, > > I needed to gather basic stats for a layer containing multiple fields. I > created the following gist to compute the number of features per each unique > value for a list of given fields >

[QGIS-Developer] Python script to count the number of feature for each unique values

2019-02-25 Thread kimaidou
Hi all, I needed to gather basic stats for a layer containing multiple fields. I created the following gist to compute the number of features per each unique value for a list of given fields https://gist.github.com/mdouchin/a234efb7e67ebd8dae3a04cb26cf5e72 I know I could use PostgreSQL to do it