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

Use delayed data removal in "System Log" section for both "Delete" and "Delete All" toolbar buttons

    XMLWordPrintable

    Details

    • Type: Task
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.0-B1
    • Fix Version/s: 5.2.2
    • Component/s: System Log
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      Fixes "Out of Memory" error, when trying to delete all System Log records at once (there must be >1000 records).
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. add "IsDeleted" column to the "SystemLog" table
      2. via simple SQL set "IsDeleted=1" to all records that needs to be deleted instead of deleting them immediately from DB
      3. don't show "IsDeleted=1" records anywhere
      4. from CRON delete records marked with "IsDeleted=1" using "TempHandler" by 100 at a time to conserve memory

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: