Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1769

Truncate search result table instead of dropping it

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B3
    • Component/s: Front End
    • Labels:
      None
    • Change Log Group:
      Changed
    • Change Log Message:
      Search table on Front-End is now created in memory and truncated instead of dropping.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. in the "OnSimpleSearch" events:
        • use "MEMORY" engine, when creating temp search table (improves speed)
        • instead of dropping temp search table clean it using "TRUNCATE TABLE" database query
      2. in the "\kSearchHelper::ensureEmptySearchTable" method:
        • create temp search table in memory and only, when it's missing
        • clean temp search table using "TRUNCATE TABLE" database query

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h