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

Optimization of TableFound function

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0-B1
    • Component/s: Database
    • Labels:
      None
    • Additional information:
      Hide

      I planned this optimization to perform specific actions only, when specific tables are found (for #0001153 task). Right now I think, that it's better to use kApplication::findModule method rather, then implementing this task.

      Show
      I planned this optimization to perform specific actions only, when specific tables are found (for #0001153 task). Right now I think, that it's better to use kApplication::findModule method rather, then implementing this task.
    • Change Log Message:
      Improved of TableFound function
    • Story Points:
      1
    • External issue ID:
      1154
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Class kDBConnection has TableFound function, that does "SHOW TABLES LIKE TableName" each time it is called with a new table name.

      The way of improving it:

      • get list of all tables on first function call and then do in_array on every repeated call

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: