BPM, Workflow, and Case

 View Only
  • 1.  SQL Execute Statement is slow

    Posted 16 days ago
    Edited by Lorraine Rizzuto 15 days ago

    The IBM BAW built-in SQL Execute Statement is very slow. A simple insert operation takes 2 seconds, but based on the logs, it's not the database itself that's slow-it's the process of reaching the database that's causing the delay. However, this issue only occurs in the production environment at the client's site; we don't experience this problem in the development environment. The database is MSSQL. What could be the issue, and how can it be resolved? 

    Thank you very much in advance for your answer.



    ------------------------------
    Botond Hegedus
    ------------------------------



  • 2.  RE: SQL Execute Statement is slow

    Posted 12 days ago

    @Botond Hegedus 

    particularly related to network, configuration, or the application environment. 

    - Network Latency/Connectivity Issues

    If the issue is related to reaching the database but the database isn't slow itself, there might be network latency or connectivity issues between your application (IBM BAW) and the SQL Server in the production environment. This is common when:

    The application and the database are located in different data centers or regions.
    There are firewall rules, network congestion, or packet loss that are causing delays.

    How to resolve:

    Test network latency: Use tools like ping or traceroute to test the network latency between the application server and the database server. Look for any significant delay.
    Check network health: Monitor the network for congestion or packet loss using network monitoring tools (e.g., Wireshark, TCPdump, etc.).
    Review firewall settings: Ensure that there are no overly strict firewall rules or security appliances that could be delaying the connection to the database.

    also 

     Load Balancers or Reverse Proxies
    In a production environment, there might be a load balancer, reverse proxy, or other intermediary component between the application and the database.

    These can introduce delays, especially if misconfigured or under high load.

    How to resolve:

    Review load balancer or proxy configurations. Ensure that the connections are routed efficiently, and check for any issues related to high load or misrouting.
    Test the connection directly to the database (bypassing the load balancer/proxy) to isolate whether the issue is with the intermediary component.



    ------------------------------
    Mohammed Ghazali
    ------------------------------