Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because the proposed solution uses sub-queries to look up each path component, only relevant fragments are examined.
Existing solutionProposed solution

Because the existing solution uses a regex, all fragments nodes in anchor 3 need to be examined to see if they match the regex.

Because the proposed solution uses sub-queries to look up each path component, only relevant nodes are examined.

Image Added

  • Green and yellow nodes have been checked against the regex.
  • Yellow nodes have had JSON attributes examined.

Image Added

  • Green nodes have been looked up using an index-only lookup.
  • Yellow nodes have had JSON attributes examined.

Image Removed

Image Removed

If the number of nodes is doubled, the number of xpaths checked against the regex is also doubled (linear complexity).

If the number of nodes is doubled, the same number of nodes is still scanned in this case (constant complexity).

...