I agree with this.  <br><br>FDO is already seen as large and awkward by much of the larger open source community.  Anything that can be done to reduce complexity, or at least not increase complexity, is good.<br><br>Jason<br>
<br><div class="gmail_quote">2009/9/16 Traian Stanev <span dir="ltr">&lt;<a href="mailto:traian.stanev@autodesk.com">traian.stanev@autodesk.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Dan,<br>
<br>
I think you are right, there are not many places where the performance gain would be significant -- but they do exist. Imagine a copy from one data source to another, of a feature class with 100K features and 100 columns -- a common situation with street network files. For each feature, for each property,  you would have to do a name-&gt;index lookup inside the reader provider (SDF, SQLite, SHP or whatever other provider gets columns by index natively). Such lookups do get costly once you have lots of columns.<br>

<br>
If given a choice between the RFC34 as it is now and not having access by index at all, I would choose the latter -- i.e. I&#39;d rather see the RFC withdrawn than implemented in a way that will require API users to write more code to use it than if they used access by name. Simply because if it&#39;s more work to use access by index, I don&#39;t see people switching their code around to make use of it.<br>

<font color="#888888"><br>
Traian<br>
</font><div class="im"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
</div><div><div></div><div class="h5">&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Dan Stoica<br>
&gt; Sent: Wednesday, September 16, 2009 9:54 AM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Talking about the performance gain it might be disappointing. The reason is<br>
&gt; the access by name has been optimized for a number of providers.<br>
&gt;<br>
&gt; As for convenience, I&#39;m not very sure either.<br>
&gt;<br>
&gt; Dan.<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Klain Qin<br>
&gt; Sent: Tuesday, September 15, 2009 10:02 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Yes, Carsten. You are right. This is exactly the way being proposed for the<br>
&gt; default implementation as depicted in the RFC.<br>
&gt;<br>
&gt; Klain<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Carsten Hess<br>
&gt; Sent: Wednesday, September 16, 2009 9:39 AM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Couldn&#39;t the default implementation of the reader base class implement an<br>
&gt; index based access using a name / index hashtable?<br>
&gt; That way index based access would be about as slow as name based access in<br>
&gt; the default cases and in providers taht override this index based behavior<br>
&gt; the access would be faster. It also would not put a burden on the client<br>
&gt; code while not loosing any performance in either case.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;    Carsten<br>
&gt; ________________________________________<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [fdo-internals-<br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Klain Qin [<a href="mailto:klain.qin@autodesk.com">klain.qin@autodesk.com</a>]<br>
&gt; Sent: Tuesday, September 15, 2009 9:34 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; To fix all of the providers internally would be hard and involve much work.<br>
&gt; One example is: there are several providers like sqllite/rdbms which have<br>
&gt; delay loading readers in some cases meaning the first property being<br>
&gt; accessed will be first cached for class definition. There are other<br>
&gt; complexities to ensure the consistency. So to provide an API like<br>
&gt; GetPropertyIndex() would be easier for the users to use the new API<br>
&gt; conveniently and correctly. The only concern is, as you mentioned, the<br>
&gt; client codes have to keep a property name-&gt;index map by themselves. But<br>
&gt; still providing this new API will be the easiest and least efforts at this<br>
&gt; time.<br>
&gt;<br>
&gt; Klain<br>
&gt;<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Traian Stanev<br>
&gt; Sent: Tuesday, September 15, 2009 10:25 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt;<br>
&gt; How hard would it be to fix the providers internally so that the index of<br>
&gt; the properties in the collection returned with GetClassDefinition<br>
&gt; corresponds to the index needed for getting the property by index? I suspect<br>
&gt; it is not too hard since it would involve the same amount of work as<br>
&gt; implementing this new GetPropertyIndex API, but will not add new API that<br>
&gt; one has to call before getting the properties by index.<br>
&gt;<br>
&gt;<br>
&gt; Traian<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Klain Qin<br>
&gt; Sent: Monday, September 14, 2009 11:02 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; While this RFC is being voted, I&#39;ve updated it again in order to use access<br>
&gt; by index API more efficiently and correctly.<br>
&gt;<br>
&gt; Previously in order to use access by index functions for FdoIFeatureReader<br>
&gt; or FdoIDataReader, the API users will have to know beforehand how index is<br>
&gt; mapping to property name. And mapping is different for different provider<br>
&gt; implementations like SqlLite/SDF and RDBMS. E.g. with the same FDO schema<br>
&gt; definition, SqlLite and RDBMS will arrange the property order returned from<br>
&gt; GetClassDefinition() differently:<br>
&gt;<br>
&gt;<br>
&gt; a.       If you don&#39;t set selected property names be returned from an<br>
&gt; FdoISelect command<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; SqlLite provider will arrange the properties in the order: Identity property<br>
&gt; -&gt; Geometry property -&gt; the left will be arranged in the order of how they<br>
&gt; are added into the class definition, like ID -&gt; geometry -&gt; datetime-&gt;<br>
&gt; double<br>
&gt;<br>
&gt; For RDBMS provider the order is: identity property -&gt; the left is ordered by<br>
&gt; the first character of the property name like ID -&gt; datetime-&gt; double -&gt;<br>
&gt; geometry<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; b.      If you do set selected property names to be returned from an<br>
&gt; FdoISelect command<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; SqlLite provider will respect the order of how they are added to selected<br>
&gt; properties.<br>
&gt;<br>
&gt; SDF provider will respect the order of corresponding properties defined in<br>
&gt; the original class definition(without setting selected properties)<br>
&gt;<br>
&gt; So to resolve this inconvenience, RFC 34 is updated again to add another<br>
&gt; function for getting the index of a specific property name. Now both of the<br>
&gt; property name and index related functions are moved to FdoIReader as they<br>
&gt; are needed for both FdoIFeatureReader and FdoIDataReader.<br>
&gt; FdoString* GetPropertyName(FdoInt32 index);<br>
&gt; FdoInt32 GetPropertyIndex(FdoString* propertyName);<br>
&gt; Can you take a look again at this RFC?<br>
&gt;<br>
&gt; <a href="http://trac.osgeo.org/fdo/wiki/FDORfc34" target="_blank">http://trac.osgeo.org/fdo/wiki/FDORfc34</a><br>
&gt;<br>
&gt; Thanks,<br>
&gt; Klain<br>
&gt;<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Greg Boone<br>
&gt; Sent: Monday, September 14, 2009 11:33 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] MOTION: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; There were no further comments on RFC 34:<br>
&gt; <a href="http://trac.osgeo.org/fdo/wiki/FDORfc34" target="_blank">http://trac.osgeo.org/fdo/wiki/FDORfc34</a>  - FDO Reader Access By Index.<br>
&gt;<br>
&gt; I would like to motion a vote to accept this RFC.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Greg.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Greg Boone<br>
&gt; Sent: Wednesday, September 09, 2009 12:41 PM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] RE: FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; FDO RFC 34 - Access By Index: <a href="http://trac.osgeo.org/fdo/wiki/FDORfc34" target="_blank">http://trac.osgeo.org/fdo/wiki/FDORfc34</a> has<br>
&gt; been updated and is ready for a secondary review.<br>
&gt;<br>
&gt; Please refer to the section labeled: &quot;Provider Implementation&quot;<br>
&gt;<br>
&gt; Please respond with comments by end of day, Friday September 11.<br>
&gt;<br>
&gt; Greg<br>
&gt;<br>
&gt; From: <a href="mailto:fdo-internals-bounces@lists.osgeo.org">fdo-internals-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:fdo-internals-">fdo-internals-</a><br>
&gt; <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Greg Boone<br>
&gt; Sent: Thursday, August 06, 2009 9:39 AM<br>
&gt; To: FDO Internals Mail List<br>
&gt; Subject: [fdo-internals] FDO RFC 34 - FDO Reader Access By Index<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; FDO RFC 34, <a href="http://trac.osgeo.org/fdo/wiki/FDORfc34" target="_blank">http://trac.osgeo.org/fdo/wiki/FDORfc34</a>, is ready for review.<br>
&gt;<br>
&gt; Please review and respond with comments.<br>
&gt;<br>
&gt; Greg<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; fdo-internals mailing list<br>
&gt; <a href="mailto:fdo-internals@lists.osgeo.org">fdo-internals@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/fdo-internals" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-internals</a><br>
&gt; _______________________________________________<br>
&gt; fdo-internals mailing list<br>
&gt; <a href="mailto:fdo-internals@lists.osgeo.org">fdo-internals@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/fdo-internals" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-internals</a><br>
&gt; _______________________________________________<br>
&gt; fdo-internals mailing list<br>
&gt; <a href="mailto:fdo-internals@lists.osgeo.org">fdo-internals@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/fdo-internals" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-internals</a><br>
_______________________________________________<br>
fdo-internals mailing list<br>
<a href="mailto:fdo-internals@lists.osgeo.org">fdo-internals@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fdo-internals" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-internals</a><br>
</div></div></blockquote></div><br>