Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-6295

[doc2] Avoid unrelated DB calls in sync_documents after import

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.12.0
    • Fix Version/s: 4.0.0
    • Component/s: core.api
    • Labels:
      None

      Description

      1. import_documents() calls sync_documents to create missing doc1 links.
      2. There are certain DB operations in sync() which are unrelated to import.

      When there are > 200k doc1 entries in DB, we get
      OperationalError(1205, "Lock wait timeout exceeded: try restarting transaction")
      and one would have to kill the process.

        Attachments

          Activity

            People

            • Assignee:
              krish Sai K Chirravuri
              Reporter:
              krish Sai K Chirravuri
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: