Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11407

AliSQL: [Feature] issue #33 HINT SOLUTION FOR INVENTORY

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Description
      -----------
      Usually Inventory Center has some hot commodity, corresponding to
      MySQL table records. So update the record will cause serious contention simultaneously.
       
      This patch supply a queue for every hot commondity to serialize update
      according to statement hint.
       
      Hints:
      QUEUE_ON_PK
      COMMIT_ON_SUCCESS
      ROLLBACK_ON_FAIL
      TARGET_AFFECT_ROW
       
      Usage
      -----
      update COMMIT_ON_SUCCESS ROLLBACK_ON_FAIL QUEUE_ON_PK 1 TARGET_AFFECT_ROW 1 t1 set c=c-1 where id=1;
      

      https://github.com/alibaba/AliSQL/commit/acffb01d72b9bdebb7715b24badf08149a115c06

      Attachments

        Activity

          People

            Unassigned Unassigned
            svoj Sergey Vojtovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.