[Qgis-developer] Reverse Changeset 13499
Marco Hugentobler
marco.hugentobler at sourcepole.ch
Tue May 18 05:13:21 EDT 2010
Or you use 'mutable' members for special cases. Lazy fetching is one of the
few cases where mutable makes sense (even though I agree that it should be
used with cautiousness).
Regards,
Marco
Am Dienstag, 18. Mai 2010, um 07.15:19 schrieb Jürgen E. Fischer:
> Hi,
>
> On Tue, 18. May 2010 at 06:50:59 +0200, Jürgen E. Fischer wrote:
> > > The reasoning behind the estimated metadata option is it only gets the
> > > table row count from the table statistics, regardless of any filters.
> >
> > But that's wrong, when there is a where clause.
>
> We could fetch the feature count only if we actually need it. But that
> would require to change the API and drop the const from
> QgsVectorDataProvider::featureCount().
>
> Any objections?
>
>
> Jürgen
--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Webereistrasse 66, 8134 Adliswil, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
More information about the Qgis-developer
mailing list