Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4773

Prevent certain export files from being huge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Must have Must have
    • 2.21
    • None
    • pandora

    • 3
    • Campaigns
    • Sprint #122

      Certain campaigns, when exported, produce a xml file that is really large (some are up to 70MB), even if the campaign doesn't have that much content or attachments. The reason is the current export logic, instead of using the wordpress function to get the metadata, uses a select on the metadata table that gets all the records for a certain post/attachment. However, due to some other bug, there may be many duplicate records in that table, up to thousands for certain attachments. All these duplicate records are currently exported and also created on import.

      TASK: in exporter.php, replace the database query with a call to the wordpress function "get_post_meta", which only returns distinct records.

            pvincent Pieter Vincent
            pvincent Pieter Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: