Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13934

Store deleted documents with the same structure as the curent documents

    Details

    • Type: Idea
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4.3
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Main reasons are:

      • the way deleted document are stored right now make it unusable for document with lots of versions/attachments (see XWIKI-8910)
      • it would make possible to request deleted document just like

      There is two possible implementations:

      A) New fields deleter and deleteDate in history and entity tables (document, attachment, objects, etc.) and and make primary key of all those tables include deleteDate

      Probably the solution that would make the more sense if we were starting from scratch.

      PRO:

      • Super fast delete/restore operations.

      CONS:

      • very dangerous change, retro-compatibility is close to impossible: the main issue is that it would break all existing HQL requests on documents which obviously won't filter on those fields that did not existed when they were written

      B) Duplicate all entity tables

      PRO:

      • make retro-compaibility easier

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: