We are reading a txt file which is size of less than 100 KB and generating output txt file using below transformation logic. To generate output txt file in production, it is taking more than 3 minutes . Is there anyway to reduce processing time.
- Mule Runtime: 4.2.1
import * from dw::core::Strings //output application/csv output application/flatfile schemaPath = "output-fixed-witdh.ffd" , segmentIdent = "output-fixed-witdh" --- payload map { FirstName_Out: $.ParticipantFirstName, LastName_Out: $.ParticipantLastName, IssueDate_Out: ($.ReimbursementDate splitBy ("/") map (if(sizeOf($)==1) "0" ++ $ else $) joinBy "/") as Date {format: "MM/dd/yyyy"} as String {format: "MMddyy"}, Amount_Out: ($.Amount as Number*100) as String {format: "0000000000"}, CheckType_Out: $.Method, CheckNumber_Out: $.PaymentNumber }
Below is the schema used:
form: FIXEDWIDTH
id: 'output-fixed-witdh'
name: 'output-fixed-witdh'
values:
- { name: 'FirstName_Out', usage: M, type: String, length: 20 }
- { name: 'LastName_Out', usage: M, type: String, length: 20 }
- { name: 'IssueDate_Out', usage: M, type: String, length: 6 }
- { name: 'Amount_Out', usage: M, type: String, length: 10 }
- { name: 'CheckType_Out', usage: M, type: String, length: 2 }
- { name: 'CheckNumber_Out', usage: M, type: String, length: 8 }