Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-2387

Optimize civicrm search by restricting the BIG query to only relevant contact ids ..

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description


      Improve the query that gets all the data by restricting it to the relevant contact ids. We can get all the contacts ids by a much smaller (and hence faster) query which does not need all the LEFT JOIN's. This potentially is a bit of problem with the order clause, so we might have to restrict its usage if we cannot figure out what tables to add (with profile search views etc)

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              lobo Donald A. Lobo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: