Another alternative I tried was using the SQLCreator and have the database run the summary statistics for me with a GROUP BY statement. I only need attributes, and not the SHAPE field, so it's okay to just make an ORACLE query. However, this "reader" cannot read SDE data in a version. I tried using ESRI's new versioned view function in the sql statement so that the query would read data from the version in question. Here's what the sql looks like with those lines added:
FME_SQL_DELIMITER ;
EXEC sde.version_util.set_current_version('USERNAME.MySDEVersion');
select GROUPID,SUM(Field1),SUM(Field2)
from MyVersionedFeatureClass
group by GROUPID;
This returned an error saying:
An error occurred while accessing a table result for feature type `QueryFactory_SQLExecute'; message was `Execution of statement `EXEC sde.version_util.set_current_version('FME_SERVICE.duf_fme_updates')' did not succeed; error was `ORA-00900: invalid SQL statement'. (serverType=`ORACLE8i', serverName=`giswpdr', userName=`FME_SERVICE', password=`***', dbname=`')' (server type is `ORACLE8i', server name is `giswpdr', username is `FME_SERVICE', password is `***', database name is `')Error executing SQL statement: EXEC sde.version_util.set_current_version('FME_SERVICE.duf_fme_updates')
Any Ideas on making things go a little faster? I just need to work in a version that's below default and be able to handle about 1.5 million records as efficiently as possible.