There are a couple of pretty inefficient things happening here. Firstly, it generates 1000 userobjects, which is actually not a good idea to do in one request in ColdFusion. Secondly, it launches 1000 database queries, which is actually not a good idea in any programming language.
, . ORM Wheels, , , , .
, SQL Server 2008, user, cfquery:
<cffunction name="batchCreate">
<cfquery datasource="#get('dataSourceName')#">
INSERT INTO
#this.tableName()# (#this.columnNameForProperty("name")#)
VALUES
<cfloop from="1" to="10000" index="i">
(<cfqueryparam cfsqltype="cf_sql_varchar" value="Test#i#">)
<cfif i lt 10000>,</cfif>
</cfloop>
</cfquery>
</cffunction>
, -, MySQL .