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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Pulling 500,000 records from SQL Server DB per day

  • 1.  Pulling 500,000 records from SQL Server DB per day

    Posted 05/18/15 09:16 PM

    Hi,

    We have a requirement of pulling close to 500,000 records(on an average) per day from the DB and transforming it and then writing it to a flat file and SFTP the file. We tried the approach of pulling around 1000 records at one go and iterating the process until the row count is 0. But the DB team is not comfortable with us making so many calls to their system.

    Is there a process that we could use which would reduce the load on both the DB and webMethods and helps us to accomplish the task ?

    webMethods version :9.6

    Please provide your valuable suggestions.

    Thanks,
    Sachin


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 2.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 03:13 AM

    Hi,
    Write a storedProcedure, pull data of 10k records per each iteration and schedule the same per hr or so which ever is feasible to you.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 03:34 AM

    Hi,

    Thanks for the response. But the records need to be pulled at one time and further processing needs to be done. This service has to be scheduled only once per day and all processing has to happen then.


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 07:02 AM

    Hi,
    from SP read all data and store in File in some server. Read file how ever you like. Here, DB hit is only once per day.

    Thanks,


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 5.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 07:55 AM

    Since the service runs once a day, go for a normal select adapter service, get the data, parse it and then process it.

    Any reasons for not opting the above solutions.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 6.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 08:05 AM

    Also explore the terracotta cache capabilities. I have never practically experienced this, but I am sure it would suit your requirement if you have access to terracotta.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 7.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/19/15 06:04 PM

    There will be on an average half million records sitting and running the select adapter service will have a serious performance issue on both the DB and webMethods IS. That is the reason I am not opting for that approach. Any suggestions to avoid loading the memory with so much data ?


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 8.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/20/15 05:00 AM

    Then write a scheduler which runs for every a few hrs, tell DBA to support on this.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 9.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/20/15 03:23 PM

    Yes I would also suggest tune the select script/SP due to its prediction volumes and take DBA help to run the query faster for making adapter service performance optimization and make it run as a scheduled job once it is properly tested (assuming this runs in a prod cluster setup).

    HTH,
    RMG


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/20/15 04:04 PM

    The fact that the database team is not comfortable with you making 500 calls to their DB to pull 1000 records at a time is a bit silly. Did they back up their concerns with data? If their system can’t handle it, they should fix it so that it can or provide a better solution themselves, which leads me to the next point.

    Since the database team is worried, I think MR as173d’s suggestion is perfect: push it back to them and tell them to create a stored procedure that simply dumps the file that you need. You then just have to worry about transferring it.

    This solution should solve their problem and also make your life easier. Win win. :slight_smile:

    Percio


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 11.  RE: Pulling 500,000 records from SQL Server DB per day

    Posted 05/20/15 05:55 PM

    Sachin, Don’t bang your head. Set up a call with DB team, explain the situation, also include your manager who can support you. There is a solution for every problem, let us know new comments from DB Team.

    Thanks,


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB