Changeset 572 for trunk/grails-app
- Timestamp:
- Jun 6, 2010, 12:11:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateBulkDataService.groovy
r548 r572 12 12 def dateUtilService 13 13 def appConfigService 14 def searchableService 14 15 def assignedGroupService 15 16 def assignedPersonService … … 41 42 if(GrailsUtil.environment != "development") 42 43 return fail(code: 'default.not.development.environment.failure') 44 45 log.info "Stop mirroring lucene index." 46 searchableService.stopMirroring() 43 47 44 48 log.info "Creating BULK data..." … … 78 82 79 83 log.info "Creating BULK data...complete." 84 85 log.info "Start mirroring lucene index." 86 searchableService.startMirroring() 87 log.info "Rebuilding lucene text search index." 88 searchableService.reindex() 89 log.info "Rebuilding lucene text search index, complete." 90 80 91 return result 81 92 … … 95 106 if(GrailsUtil.environment != "development") 96 107 return fail(code: 'default.not.development.environment.failure') 108 109 log.info "Stop mirroring lucene index." 110 searchableService.stopMirroring() 97 111 98 112 log.info "Creating BULK data..." … … 106 120 107 121 log.info "Creating BULK data...complete." 122 123 log.info "Start mirroring lucene index." 124 searchableService.startMirroring() 125 log.info "Rebuilding lucene text search index." 126 searchableService.reindex() 127 log.info "Rebuilding lucene text search index, complete." 128 108 129 return result 109 130 … … 263 284 range.each() { 264 285 265 if(it % 100== 0) {286 if(it % 25 == 0) { 266 287 logStatus("Creating inventory location #" + it) 267 288 cleanUpGorm() … … 305 326 range.each() { 306 327 307 if(it % 100 == 0) {328 if(it % 50 == 0) { 308 329 logStatus("Creating inventory item #" + it) 309 330 cleanUpGorm()
Note: See TracChangeset
for help on using the changeset viewer.