Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-655

Cache replaced topic names and shard ids in ByLogicalTableRouter SMT

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 0.7.4
    • Fix Version/s: 0.7.5
    • Component/s: core-library
    • Labels:
      None

      Description

      Regexps are slow.
      When using ByLogialTableRouter we're only operating on small amount of names to be replaced by regular expression.
      Adding cache can speed up this a lot.

      Sample values for different regexps (time in msec, 10M iterations):

      (.*)(x|y)[.](.*)

      • without cache: 42091
      • with: 150

      abc[.](x|y)[.](.*)

      • without: 10540
      • with: 88

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                maver1ckpl Maciej Bryński
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: