- Timestamp:
- Jan 12, 2010, 2:32:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateBulkDataService.groovy
r258 r261 18 18 def propertyInstanceMap = org.codehaus.groovy.grails.plugins.DomainClassGrailsPlugin.PROPERTY_INSTANCE_MAP 19 19 20 def startTime = System.currentTimeMillis()21 def lastBatchStarted = startTime20 def startTime 21 def lastBatchStarted 22 22 23 23 /******************************************* … … 88 88 def personInstance 89 89 90 def range = 1..1000 90 def start = Person.count() + 1 91 def end = start + 100 92 93 def range = start..end 91 94 92 95 def loginName = "BtLoginName" … … 137 140 def p = [:] 138 141 139 def range = 0..40000 142 def start = Task.count() + 1 143 def end = start + 10000 144 145 def range = start..end 140 146 141 147 … … 150 156 def today = dateUtilService.today 151 157 158 startTime = System.currentTimeMillis() 159 lastBatchStarted = startTime 160 152 161 range.each() { 153 162 154 if(it % 100 0== 0) {163 if(it % 100 == 0) { 155 164 logStatus("Creating task #" + it) 156 165 cleanUpGorm()
Note: See TracChangeset
for help on using the changeset viewer.