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

Store deleted documents with the same structure as the curent documents

    XMLWordPrintable

Details

    • Idea
    • Resolution: Unresolved
    • Major
    • None
    • 8.4.3
    • Old Core
    • None
    • Unknown

    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

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

              Dates

                Created:
                Updated: