IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  ConvertToString Performance

    Posted Thu January 13, 2005 10:43 PM

    Hello fellow wM Users,

    I am selecting a large (35K) number of small rows from a DB, which I need to write to a flat file and then ftp. The steps are as follows:

    Select records
    Loop over
    …CovertToString (to create flat file)
    …Map
    End Loop
    blah blah blah

    The process is working, but convertToString is taking a very long time. Any ideas on how to maximize performance???


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 2.  RE: ConvertToString Performance

    Posted Fri January 14, 2005 08:22 AM

    Hi,
    have you tried to get the numbers as strings directly out of the DB with your SQL-Statement (like: to_char(numberfield)

    Ralf


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 3.  RE: ConvertToString Performance

    Posted Fri January 14, 2005 04:04 PM

    The convertToString function writes the data to a flat file. We need it…


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 4.  RE: ConvertToString Performance

    Posted Sat January 15, 2005 01:00 PM

    How about building the records from database first before you use the convertToString?

    Loop Over (in:Database Conditions; out:outRecords)
    select from database and map to outRecords
    End Loop

    convertToString(outRecords)

    of couse you need to make sure ur schema records change to record list


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 5.  RE: ConvertToString Performance

    Posted Sat January 15, 2005 03:24 PM

    WriteToFile service can be used to write records to the file.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 6.  RE: ConvertToString Performance

    Posted Sun July 08, 2007 02:20 PM

    hi i m using webmethod 6.1 but I am unable to find out " Sample.io.test:writetofile" service


    can any one give the idea to write into file without using this or its alternative plz…


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 7.  RE: ConvertToString Performance

    Posted Mon July 09, 2007 03:46 AM

    Hi,

    Going back to the performance issue, according to my experience you will get a very good performance boost if you convert the convert to String invoke step to a transformer step. My two cents explanation for performance improvement is as follows.

    If you invoke a service, webMethods will try to create a copy of input pipeline , do the processing and then merge the results into already created copy of output pipeline. This is very important to do the way webMethods is doing, but for a task like covertToString, if you have declared the service signature properly not relying on the implicit variables, then you should be able to convert the invoke service to Transformer, by doing this webMethods only deals with what has been mapped as the input and what has been mapped as the output, and hence a lot of memory declaration is avoided. When you do these test on 1 or 100 records you won’t find a huge performance difference. But when you test this on a large number of records then you will for sure will find it to be better (or atleast I found it).

    Cheers,
    Ram


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: ConvertToString Performance

    Posted Mon July 09, 2007 04:39 PM

    You can also find this service in PSUtilities package…You can copy this service into your custom package and use it.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #edi