Uploaded image for project: 'Project Simple'
  1. Project Simple
  2. ST-176

Query performance - GetSearchCompanyDetails()

    Details

    • Type: Enhancement
    • Status: Production Complete
    • Priority: High
    • Resolution: Done
    • Component/s: Performance
    • Labels:
      None
    • Module:
      Platform - Performance
    • Reported by:
      Support
    • Item State:
      Production Complete - Closed

      Description

        Attachments

          Issue Links

            Activity

            Hide
            prasanna Prasanna Karlekar (Inactive) added a comment - - edited

            Suhas Joshi,Saurabh Sablaka,Samir,Vikas Pawar

            Concern:
            GetSearchCompanyDetails() routine taking time.
            As per New Relic logs traced during load test, for 1 call count the query took 42 seconds execute.
            Locally it took 41 seconds and 11 seconds at different times.

            Cause:

            • GetSearchCompanyDetails business logic code has query to fetch HomePage Counters and Company Specific Image and Default Image.
            • Image related data resides on respective Company Database. There is cursor to scan all Active companies and has EXEC() to fetch image details from each company database. This is what is taking the time.

            Correction:
            Fetching of Image related information can be avoided, as we do not show company image for Search Company Widget on Home Page.
            We will keep the code block to fetch Image data conditional.
            Following is the approach:

            • If company data is going to get populated for list view, image data will not be fetched.
            • If company data is going to get populated for grid view, where we need to show Company Logo, image data will be fetched.
              After doing these changes, query executes within a second on local machine. We need to track this once again during load test.

            Files Changed:

            • WT\trunk\WORKTERRAweb\App\BusinessLogic\CollectionManager\CollectionManager.vb
            • WT\trunk\WORKTERRAweb\Web\SharedFunctionWebTier\SharedFunctionWebTier\Models\WTHomePage\
              WORKTERRAShared\SearchCompanyPVModel.cs
            • WT\trunk\WORKTERRAweb\Web\WebProjects\WORKTERRA\Controllers\HomePage\SearchCompany\
              SearchCompanyController.cs
            • WT\trunk\WORKTERRAweb\Web\Web Projects\WORKTERRA\Models\HomePage\SearchCompany\CompanyModel.cs

            Impacted Areas:

            • Search Company Widget on SA / Partner / Broker/ Company Admin Home Page.
            • Search Company screen via Menu / Quick link
            Show
            prasanna Prasanna Karlekar (Inactive) added a comment - - edited Suhas Joshi , Saurabh Sablaka , Samir , Vikas Pawar Concern: GetSearchCompanyDetails() routine taking time. As per New Relic logs traced during load test, for 1 call count the query took 42 seconds execute. Locally it took 41 seconds and 11 seconds at different times. Cause: GetSearchCompanyDetails business logic code has query to fetch HomePage Counters and Company Specific Image and Default Image. Image related data resides on respective Company Database. There is cursor to scan all Active companies and has EXEC() to fetch image details from each company database. This is what is taking the time. Correction: Fetching of Image related information can be avoided, as we do not show company image for Search Company Widget on Home Page. We will keep the code block to fetch Image data conditional. Following is the approach: If company data is going to get populated for list view, image data will not be fetched. If company data is going to get populated for grid view, where we need to show Company Logo, image data will be fetched. After doing these changes, query executes within a second on local machine. We need to track this once again during load test. Files Changed: WT\trunk\WORKTERRAweb\App\BusinessLogic\CollectionManager\CollectionManager.vb WT\trunk\WORKTERRAweb\Web\SharedFunctionWebTier\SharedFunctionWebTier\Models\WTHomePage\ WORKTERRAShared\SearchCompanyPVModel.cs WT\trunk\WORKTERRAweb\Web\WebProjects\WORKTERRA\Controllers\HomePage\SearchCompany\ SearchCompanyController.cs WT\trunk\WORKTERRAweb\Web\Web Projects\WORKTERRA\Models\HomePage\SearchCompany\CompanyModel.cs Impacted Areas: Search Company Widget on SA / Partner / Broker/ Company Admin Home Page. Search Company screen via Menu / Quick link
            Hide
            deepalit Deepali Tidke (Inactive) added a comment -

            Kindly check home pages for every login specially company and EE search

            Show
            deepalit Deepali Tidke (Inactive) added a comment - Kindly check home pages for every login specially company and EE search
            Hide
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment -

            Tested this on LB through SA,Partner,Broker and Admin log in. Search company widget working fine with no issues.
            Also tested this via Menu and Quick links

            Ready for Stage

            Show
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment - Tested this on LB through SA,Partner,Broker and Admin log in. Search company widget working fine with no issues. Also tested this via Menu and Quick links Ready for Stage
            Hide
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment -

            Tested this on Stage through SA,Partner,Broker and Admin log in on hspl company.
            Search company widget working fine with no issues.
            Also tested this via Menu and Quick links

            Ready for Production

            Show
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment - Tested this on Stage through SA,Partner,Broker and Admin log in on hspl company. Search company widget working fine with no issues. Also tested this via Menu and Quick links Ready for Production
            Hide
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment - - edited

            Tested this on Production through SA,Partner,Broker and Admin log in on hspl company.

            Search company widget working fine with no issues.

            Also tested this via Menu and Quick links

            Show
            venkatesh.pujari Venkatesh Pujari (Inactive) added a comment - - edited Tested this on Production through SA,Partner,Broker and Admin log in on hspl company. Search company widget working fine with no issues. Also tested this via Menu and Quick links

              People

              Assignee:
              venkatesh.pujari Venkatesh Pujari (Inactive)
              Reporter:
              saurabh.sablaka Saurabh Sablaka (Inactive)
              Developer:
              Prasanna Karlekar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Pre-Prod Due Date: